Professional Documents
Culture Documents
cal
cal -y
cal [year]
cal -3
cd - Change Directory
cd /usr/bin/gems/ruby
cd /root
touch file1.txt
touch file2.c
touch file3.txt
touch file.txt
touch file10.txt
ls -l
ls -lt
ls -ltr
ls -la
vi <FileName>
Insert - i
Escape - Esc
wc <filename>
cp <filename1> <filename2>
mv <filename1> <filename2>
rm <filename>
mkdir dirname
rmdir dirname
rm -r dirname
u - user
g- group
o- others
r-read - 4
w-write -2
x-execute -1
-i - ignore case
-c - Count no. of lines
-o - Display pattern
-n - Display line number
-v - inverting the pattern match
^pattern - Search of lines having pattern as starting point
pattern$ - Search of lines having pattern as end point
sort <filename>
sort -n <filename> - Numeric sort
sort -r <filename> - reverse sorting
sort -kn <filename> - sort based on field n
sort -t"d" -kn - sort based on field "n" and delimiter is "d"
:set nu
:%s/search/replace/g