The document provides a list of common Linux commands and their usage. It explains commands to check the system information, navigate directories, manage files and folders, and get system details. Key directories like /etc, /root, /home, and /proc are also described.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
16 views1 page
Rhel Notes
The document provides a list of common Linux commands and their usage. It explains commands to check the system information, navigate directories, manage files and folders, and get system details. Key directories like /etc, /root, /home, and /proc are also described.
~ --> login user's home directory. $ --> login with normal user. [root@localhost~]# (write commond here). /--> top director/root. commands- 1.whoami--> which user. 2.cd-> change directory. 3.cd /etc.-> to go in etc director 4.hostname-> to find name of the host. 5.hostnamectl set-hostnameame name -> to change host. 6.bash-> to reload shell. 7.command+tab-> to get suggestion. 8.hostnamectl-> to get all detail about machine. 9.ls-> list pwd. 10.clear-> to clear terminal. 11.touch filename-> to create file in pwd . 12.mkdir dirname-> to create directory in pwd. 13.uname-> to print kernal info.. 14.cat file_name-> to access file. 15.head file_name-> to access file top 10 lines. 16.tail file_name-> bottom 10 lines. 17. man command_name-> to open manual of commands. 18. free -h --> to get memory status in human readable form. 19. cmd--help --> to get suggestion . 20. uname -a--> to print all info of kernal. 21. head-n 5 file_name--> to print top 5 line. 22. tail-n 5 file_name--> to print bottom 5 line. 23. ls -l --> to long list pwd. 24.;--> can be use between command to seprate it 25.rmdir dire_name--> to remove an empty directory. 26.rm file_name--> to remove a file . 27. rm -f file_namr --> to remove file without asking. we can use it to delet bulk file. 28. init 0--> to shutdown. /etc - this directory store system confegrations files. treated as control panal of linux. /root this is home directory of root user. /home this is home directory of gen user. /div this directory store all the devices as a file. /proc this directory store process information.(info about hardware).
29. du -h -> to find the size of file
30. umask - full perm of dir - umask = default perm of dir def perm of dir - xxx = default perm of file