cd relative and absolute paths
These are all the same, if you are in your HOME on a normal Linux system.
cd ~ cd cd $HOME cd /home/{your-userid} cd ~/
A different example:
cd
pwd
cd /etc
cd
cd etc
cd ../../etc
Cmd History
Examples:
$ history
$ !!
$ !-5
$ !543
$ !vi
$ man history # to learn more
- Up arrow
- ctrl-L/R arrow ...
- Can edit the command line -
move/delete words, etc.
$ ^string1^string2^
Quick substitution. Repeat the
last command, replacing string1
with string2. Equivalent to
"!!:s/string1/string2/"
Calendar
September October November
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 1 2 3 4 5 6 7 1 2 3 4
3 4 5 6 7 8 9 8 9 10 11 12 13 -- 5 6 7 8 9 10 --
10 11 12 13 14 15 16 15 16 17 18 19 20 21 12 13 14 15 16 17 --
17 18 19 20 21 22 23 22 23 24 25 26 27 28 19 20 21 22 23 24 --
24 25 26 27 28 29 30 29 30 31 26 27 28 29 30