Material for Platform Based Development
There are two (for now) type of files:
It's important to learn how are the directories (folders) structured in your computer.
The initial folder that includes all other directories in your computer is called root, and it's represented by a slash (/).
If you want to reference a folder while using a command, you need to specify the full path you will need to travel to get there from the root.
For example, if you want to reference the 'home' directory, according the picture shown you will need to use:
'/export/home/'
Which means: Go to '/', then to 'export/' and then to 'home/'.
echo
: Print a message
pwd
: Current directory
ls
: List files
touch
: Create empty file
mkdir
: Create directory
mv
: Move or rename a file or directory
cd
: Change directory
ls -a
: List files, include hidden files
.
and ..
: Current and previous directory
~
: Reference to your HOME directory
WARNING: rm
PERMANENTLY DELETES! You CANNOT recover anything when you use rm
. I recommend to mkdir OLD
to make a trash directory OLD and mv
older/unneeded files/directories there. You can always delete them later.
rm
: Deleterm -r
: Delete recursively (used for deleting directories)man
: Open the manual page for a commandcat
: Concatenate files and show content in the screen