Skip to content

Latest commit

 

History

History

0x00-shell_basics

Basic Shell Commands

The folder contains commands for navigating and for manipulating files.

  • File 0-current_working_directory prints the current working directory.

  • File 1-listit displays the contents list of the current directory.

  • File 2-bring_me_home changes the working directory to the user’s home directory.

  • File 3-listfiles displays current directory contents in a long format.

  • File 4-listmorefiles displays current directory contents, including hidden files (starting with .).

  • File 5-listfilesdigitonly displays current directory contents in long format, with user and group IDs displayed numerically and hidden files.

  • File 6-firstdirectory creates a script that creates a directory named holberton in the /tmp/ directory.

  • File 7-movethatfile moves the file betty from /tmp/ to /tmp/my_first_directory.

  • File 8-firstdelete deletes he file betty.

  • File 9-firstdirdeletion deletes the directory my_first_directory that is in the /tmp directory.

  • File 10-back writes a script that changes the working directory to the previous one.

  • File 11-lists writes a script that lists all files (even ones with names beginning with a period character, which are normally hidden) in the current directory and the parent of the working directory and the /boot directory (in this order), in long format.

  • File 12-file_type writes a script that prints the type of the file named iamafile.

  • File 13-symbolic_link creates a symbolic link to /bin/ls, named ls.

  • File 14-copy_html creates a script that copies all the HTML files from the current working directory to the parent of the working directory, but only copy files that did not exist in the parent of the working directory or were newer than the versions in the parent of the working directory.

  • File 15-lets_move creates a script that moves all files beginning with an uppercase letter to the directory /tmp/u.

  • File 16-clean_emacs creates a script that deletes all files in the current working directory that end with the character ~.

  • File 17-tree creates a script that creates the directories welcome/, welcome/to/ and welcome/to/holberton in the current directory.

  • File 18-commas writes a command that lists all the files and directories of the current directory, separated by commas (,).