This project took me on an introductory crash course in the Shell. I learned how to navigate directories using cd
, pwd
, ls
, how to look around using ls
, less
, and file
, and how to manipulate files with cp
, mv
, rm
, and how to create directories with mkdir
. I also practiced working with the type
, whch
, help
, and man
commands, implementing wildcards, reading man pages, creating links with ln
, and using keyboard shortcuts in Bash.
-
0. Where am I?
- 0-current_working_directory: Bash script that prints the absolute pathname of the current working directory.
-
1. What's in there?
- 1-listit: Bash script that displays the content list of the current directory.
-
2. There is no place like home
- 2-bring_me_home: Bash script that changes the working directory to the user's home directory:wq .
-
3. The long format
- 3-listfiles: Bash script that displays current directory contents in a long format.
-
4. Hidden files
- 4-listmorefiles: Bash script that displays current directory contents, including hidden files (starting with
.
) in a long format.
- 4-listmorefiles: Bash script that displays current directory contents, including hidden files (starting with
-
5. I love numbers
- 5-listfilesdigitonly: Bash script that displays current directory contents
- Long format
- User and group IDs displayed numerically
- Hidden files
- 5-listfilesdigitonly: Bash script that displays current directory contents
-
6. Welcome
- 6-firstdirectory: script that creates a directory named
my_first_directory
in the /tmp/ directory.
- 6-firstdirectory: script that creates a directory named
-
7. Betty in my first directory
- 7-movethatfile: script that moves the file betty from
/tmp/
to/tmp/my_first_directory
.
- 7-movethatfile: script that moves the file betty from
-
8. Bye bye Betty
- 8-firstdelete: script that deletes the file
betty
.- The file
betty
is in/tmp/my_first_directory
.
- The file
- 8-firstdelete: script that deletes the file
-
9. Bye bye My first Directory
- 9-firstdirdeletion: script that deletes the directory
my_first_directory
that is in/tmp
directory.
- 9-firstdirdeletion: script that deletes the directory
-
10. Back to the future
- 10-back: script that changes the working directory to the previous one.
-
11. Lists
- 11-lists: 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.
- 11-lists: 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
-
12. File type
- 12-file_type: script that prints the type of the file named
iamafile
. The fileiamafile
will be in the temporary/tmp
when we run your script.
- 12-file_type: script that prints the type of the file named
-
13. We are symbols, and inhabit symbols
- 13-symbolic_link: this script creates a symbolic link to
/bin/ls
, named__ls__
. The symbolic link should be created in the current working directory
- 13-symbolic_link: this script creates a symbolic link to