Professional Documents
Culture Documents
# alias d='date'
this alias is create for run time . when the system is reboot the alias is
distroyed .
#source /root/.bashrc
InputRedirection
================
#touch stdin.txt
#cat < stdin.txt
-Log and switch user in multiuser targets
How to change the mode of system?
=============================
#systemctl get-default
===========================================
-Archive , compress, unpack , and uncompressed files:
===========================================
1)Archive
=======
Diff tool is used for Archive.
How to create archive of a folder.
---------------------------------------
# cd /
#tar -cvf boot.tar boot
Here boo.tar is distination folder.
boot is the source folder.
#ls
now how to check the size of archive folder.
#du -hs boot.tar
bzip2:
=====
create archive of a folder with the help of bzip2 tool.
another command is used for to take archive of a folder through bzip2 tool
#tar -jcvf boot.tar.bz2 boot
ne