Id | Sudo | Su
To know the user is using id command
id username
sudo
permits the user to execute a command as a super user at the admin level
su
su --> switch user
su -username
id
exit
Zip
zip filename file
zip filename *.txt
zip -sf filename.zip
to view the zipped file.
unzip
unzip filename
to make another directory to unzip the file or rename the exisisting file.
ulimit
to manage the resources of the particular user.
ulimit -a
soft limit cannot more than hard limit
cat /etc/security/limits.conf
type> can have the two values:
-βsoftβ for enforcing the soft limits
β βhardβ for enforcing hard limits
type
to know where the command it will present
type command
which
where the command will locate
which mv
whatis
to know the description of the command
whereis
locate the binary, source, and manual page files for a command
apropos
search the manual page names and descriptions
change attribute
which makes the file unchangeable in the same location. but will copy the file in another location and edit the file.
sudo chattr +i filename
lsattr
sudo chattr -i file
it will convert unchangeable file to changeable file
sudo chattr -R +i dir1
sudo chattr -R -i dir1
to change the directory to unmutable