versions of Linux Unix:
main
| yours | all
Directories
| Action (memorize) | Command (memorize) |
| return into home dir | cd |
| move to the superior directory | cd .. |
| return to root dir from any point | cd / |
| show the content of a dir | ls |
| show dir's content with more details | ls -l |
| create dir | mkdir [dir name] |
| delete directory | rmdir [dir name] |
| delete dir and all subdirs | rm -r [dir name] |
| delete dir and all subdirs without asking confirmation | rm -r -f |
| show where you are | pwd |
| show subdir's tree | tree [dir name] |
| terminate command's execution | reset |
Files
| Action (memorize) | Command (memorize) |
| copy a file | cp |
| delete a file | rm |
| move/rename a file | mv |
| transform yes.txt in no.txt | mv yes.txt no.txt |
| move yes.txt in home dir | mv yest.txt /home |
| show file's content | cat fillename |
| create an empty file | touch filename |
| if you wanna know more about a command | man command |
| set time and date | hwclock (see man hwclock for more info) |
Basic System management
| Question (memorize) | Answer (memorize) |
| Reboot the system | shutdown -r now OR reboot |
| close the system | shutdown -h now OR halt |
| shut and turnoff the system | halt -p |
| differences between shutdown, halt, reboot, poweroff and the runlevel concept | see man |
| close bash or terminal | exit |
| start execution of graphic server | startx |
|
|