Red Hat Linux Basic Command Syntax
Red Hat Linux Basic Command Syntax
Next lesson amra deka chilam sudo terminal and physical terminal niya. Eichara dekachilam putty ba
ssh diya ki kore remote login kora jai. Aj kichu basic command syntax sompor ka alaf korbo. 1st ekta
terminal open kori.
Screen
1. Amder terminal ta zoom korte chila ctrl + shift +++ dila increase hobe.
2. Amder terminal ta zoom out korte chila ctrl + --- dile decrease hobe.
3. Ctrl + l dila amder terminal ta clear hoi jabe. Terminal clear likle oh chole jabe.
4. Ctrl + shift + t dila new terminal tab gui mode open hobe. Ek ek terminal ek ek user login hoi
kaj korte pari.
5. Altr + f2 diya terminal open korer jonno box a gnome-terminal likla terminal open hoi jabe run
er motho.
Userdel holo ekta command ei command er sathe vivino option use korte pari.
-r holo option (option gula – diya likte hoi)
Tanmoy ta argument
Tobe command sobsomai option argument use hobe ta na. jemon single command gula holo cd pwd
ls date etc.
[tuhin@tanmoy /]$ ls –l (l mane holo list directory gula properties akare dekaba)
total 66
lrwxrwxrwx. 1 root root 7 Sep 12 02:47 bin -> usr/bin
dr-xr-xr-x. 4 root root 1024 Sep 12 11:05 boot
[tuhin@tanmoy /]$ ls –la (la mane hidden file soho dekbe .diya je gula suru hoi eigula hidden file)
total 74
drwxr-xr-x. 18 root root 4096 Sep 13 2018 .
drwxr-xr-x. 18 root root 4096 Sep 13 2018 ..
lrwxrwxrwx. 1 root root 7 Sep 12 02:47 bin -> usr/bin
[tuhin@tanmoy /]$ ls –li (li mane holo inode number amra human readability diya usr/bin bujtachi
but linux indexing number maddome buje 17 inode number diya. Bin amra rename korte pari but
inode ba index number ta change hoi na )
total 66
17 lrwxrwxrwx. 1 root root 7 Sep 12 02:47 bin -> usr/bin
2 dr-xr-xr-x. 4 root root 1024 Sep 12 11:05 boot
3 drwxr-xr-x. 19 root root 3220 Sep 12 22:24 dev
1308161 drwxr-xr-x. 136 root root 12288 Sep 12 22:24 etc
[tuhin@tanmoy /]$ ls –lZ ( lZ ta holo security enhance policy teka. Amr system er directory level
permission diya ache seier status. Eigular jonno alada lesson ache )
lrwxrwxrwx. root root system_u:object_r:bin_t:s0 bin -> usr/bin
dr-xr-xr-x. root root system_u:object_r:boot_t:s0 boot
drwxr-xr-x. root root system_u:object_r:device_t:s0 dev
[tuhin@tanmoy /]$ ls –lh (lh mane holo human readable file / directory gula size onojai dkte pabo)
total 66K
lrwxrwxrwx. 1 root root 7 Sep 12 02:47 bin -> usr/bin
dr-xr-xr-x. 4 root root 1.0K Sep 12 11:05 boot
drwxr-xr-x. 19 root root 3.2K Sep 12 22:24 dev
drwxr-xr-x. 136 root root 12K Sep 12 22:24 etc
[tuhin@tanmoy boot]$ ls
config-3.10.0-123.el7.x86_64
grub2
initramfs-0-rescue-7a642d64dd6c40f08cc4d00b0cea420f.img
initramfs-3.10.0-123.el7.x86_64.img
initramfs-3.10.0-123.el7.x86_64kdump.img
initrd-plymouth.img
lost+found
symvers-3.10.0-123.el7.x86_64.gz
System.map-3.10.0-123.el7.x86_64
vmlinuz-0-rescue-7a642d64dd6c40f08cc4d00b0cea420f
vmlinuz-3.10.0-123.el7.x86_64
jegula hoche black eigula hoche file. Je gula hoche blue eigula hoche directory. Red holo compress
file. Green gula holo execute file.
[tuhin@tanmoy dev]$ ls
agpgart loop-control sda2 tty22 tty47 uinput
autofs lp0 sda3 tty23 tty48 urandom
[tuhin@tanmoy /]$ ll
total 66
lrwxrwxrwx. 1 root root 7 Sep 12 02:47 bin -> usr/bin
[tuhin@tanmoy Desktop]$ ls
img.jpg
magenta color gula picture file
Written by
Tanmoy Raj Tuhin
Regular user [tuhin@tanmoy ~]$ tilde ta hoche home directory regular user and root user home
directory kintu alada.
[tuhin@tanmoy ~]$ cd /
[tuhin@tanmoy /]$ / holo root partition
[root@tanmoy ~]# runlevel (mane holo ei machine ta kon runlevel ache. Eikane runlevel bolte GUI
na CLI mode buja jai r ki. 5 mane holo gui mode. 3 mane holo cli mode. N mane holo none. Amr
machine ta age kono runlevel chilo na sudu gui mode chilo )
N5
[root@tanmoy ~]# top (mane holo real time process monitoring kora jai. Similar as windows task
manager)
[root@tanmoy ~]# lastlog (mane holo kon user kokon login hoichilo )
Username Port From Latest
root pts/2 localhost Thu Sep 13 00:00:55 +0600 2018
[root@tanmoy ~]# uptime (amr machine ta kotokon dore run korche koto user login hoi ache)
00:26:13 up 2:02, 4 users, load average: 0.03, 0.09, 0.13
[root@tanmoy ~]# !59 (nor mane holo history teka sorasori 59 line command korbe)
arp
Address HWtype HWaddress Flags Mask Iface
192.168.100.3 ether 00:50:56:c0:00:01 C eno16777736
Written By
Tanmoy Raj Tuhin