Linux Notes
Linux Notes
User-->OS-->Laptop
OS types:
Window-->cost/ram/storage/loe_secure/
Linux-->free/low ram/law storage/High Security/Multi User(Not User Friendly)
Linux os (CLI)
1)login as:ec2-user
2)whoami-naa yaaru
3)sudo su,sudo -i,sudo su -root---->convert to ec2 user to root(admin)user
4)exit----->root user to ec2 user
5)clear---->clear the screen
6)pwd(present working directry)-----current location----->eg.(/root),(/home/ec2-
user)
7)ls(list)---->directry kulla irukkura file
8)ls -a------->directry kulla irukkura hide with hide file kaattum
9)mkdir dir_name--->create a directry.
10)mkdir dir_name1 dir_name2 dir_name3 ...--->create a directry.
11)cd dir_name--->click and see directry.
12)cd ..---->backword.
13)cd ../../../..--->4 step backword.
14)touch file_name---->create file name(format txt file)
15)touch file_name.format(py,json,yaml...)--->create file with format.
16)touch file_name1 file_name2 file_name3--->create multible files.
17)touch file_name1.txt file_name.py---->create multible files with format.
18)cp file_name--->copy(not only depends on the location)
19)cp file_name1 file_name2 paste_dir_name(eg_/root/d1/old/new/manoj/)
20)mv move_dir_name paste_dir_name----->move.
21)rm file_name---->remove file
21 i)rm:remove regular empty file 'file_name'?y(or)n.
22)rm -f file_name---->remove force fully.
23)rm -f file_name1 file_name2 file_name3---->remove files.
24)rm dir_name--->remove directry
24 i)rm: cannot remove 'dir_name':ls a directory.
25)rm -r dir_name---->remove directory.
25 i)rm: descend into directory 'dir_name'?y(or)n
26)rm -rf dir_name--->remove directory forcefully.
27)rm -rf *---->remove all directory and files forcefully.
28)ls -l--->long list.
29)ls -lt---->long list with time arrage.
30)ls -ltr--->long list with time arragement reverse.
31)ls -ltrh--->lond list with time arragement reverse in human readable.
Edit
49)U G O
read------->4
Write------>2
excecute--->1