Skip to content

Latest commit

 

History

History

0x00-shell_basics

Bash scripts

In this project there's different types of bash scripts:

Show the directory the user is currently in.

Show the content of the current directory.

Bring back the user to the home directory.

Show the content of the current directory in long format.

Show the content of the current directory (even hidden files and directories) in long format.

Show the content of the current directory with hidden contents, in long format and with user and group IDs as numbers.

Create a directory inside /tmp named "my_first_directory".

Move the file named "betty" from "/tmp" to "/tmp/my_first_directory".

Delete the "betty" file.

Delete the "my_first_directory" inside "/tmp".

Bring back the user to the directory he was previously in.

Show all the content in long format of the current directory, then the parent directory and the "/boot" directory to finish.

Show the file type of the "iamafile" inside "/tmp".

Create a symbolic link to "/bin/ls" named "ls".

Copy all the .html files inside the parent directory excepted the ones already in that directory and that are newer.

Move all the files starting with an uppercase from the current directory to "/tmp/u".

Delete all the backup files (ending with ~) inside the current directory.

Create a tree of directory in the current one. "school" is inside "to" which is inside "welcome".

Show all the content of the current directory separated with commas and with "/" after the directory names.

Create a magic file "school.mgc" that can be used with the command "file" to detect "School" data files. "School" data files always contain the string "SCHOOL" at offset 0.