Please enable JavaScript.
Coggle requires JavaScript to display documents.
Commands lec 9,10 - Coggle Diagram
Commands lec 9,10
cat
cat /etc/group
show groups
cat /etc/passwd
show users
cat /etc/os-release
Show os
information
tar
tar -cvf name.tar dir
Make an archive
tar -xvf name.tar
de-archive
tape archive
Access
Modes
To display
r = 4
To modify
w = 2
To execute
x = 1
1st ltetter in
permissions
-
file
d
dir
l
link
chmod
chmod 534 file || dir
r-x -wx r--
chmod u=rwx,g=r--,o=wx file || dir
chmod u+r,g-wx,o+rw file || dir
gpasswd
gpasswd -a usr grp
add single user
to a group
gpasswd -m usr1,usr2,
usr3,usr4 grp
add multiple users
to a group
ln
ln -s source destfile
Creates hardlink
of a source file
(backup)
ln source destfile
creates softlink
of source file
(shortcut)
gzip
gzip name.tar
Compress a
.tar file
gunzip name.tar.gz
unzip a
gz file
change
chgrp grp file || dir
change
group
chown usr file || dir
change
owner
useradd name
create a user
and a group
with same name
groupadd name
Create a group
wget
wget [url]
downloads a file
from the internet
rwx r-x r-- 1 root root 0
owner group others symbolic-link owner group size
No. of links
to other files