Unix filesystem
↑ UpBash, or the born again shell, is a very popular and well-documented command line shell environment for working in the Unix filesystem, and consists of directories (like folders) and files. There are many good overviews to the shell environment I prefer: bash or the born-again shell. The internet is full of great tutorials on unix and bash commands and scripting.
Key commands to get familiar with:
mkdir,rmdirlscd,pwdcp,mv,rmecho,cat./,../(not commands but names of special directories)man
A brief exercise:
- Print a brief greeting to the screen, traditionally “Hello, World!”
- Save that message to a file using redirection,
> file - Create a new directory named
dir - Move
filecontaining your message to the new directorydir - Change directories to
dir - Check that the file is in ./ not ../
- Double-check the contents of
file - Remove
dirandfile.
