UNIX/LINUX REAL TIME INTERVIEW COMMANDS
1. Mkdir: To creating a new directory
2. Rmdir: To Removing an existing directory
3. ll / ls :it shows list of the files in a directory
4. cd : changing current directory to another directory
5. ps : it shows current running process
6. pwd : it shows present working directory
7. rm :it delete/remove the files
8. rm -f : it removes forcefully the files from folder/directory
9. Grep : it search pattern based file.
10. Head : it shows first 10 lines of a file
11. Tail : it shows last 10 lines of a file
12. Free -m : it shows Memory space utilization
13. Df / df -h : it shows disk space utilization
14. Top : it shows CPU utilization
15. Kill -9 : It kills the respective process id
16. Ps -ef | grep java /ps -ef | grep tomcat /ps -ef | grep Apache : it shows whether
java/tomcat/apache anyone of the process is running or not.
17. Sudo su : user having root or full access of the server.
18. Cat : it concatenates and print the files.
19. Netstat : it shows network connection and Network port number.
20. Chmod: it changes the permissions of the file
21. Chown : it changes the ownership of the file.
22. History : it will show the previous history in server
23. Exit: To exit from the terminal
24. Find: To find the respective file in server
25. Locate: To shows the exact file location
26. Gzip : it compress the File content.
27. Ungzip : it uncompress the file content.
28. Mv : it moves files/directories from one location to another location.
29. Ping : it will show whether server is online or not or pingable or not.
30. Shutdown : it will shutdown or reboot the Linux system.
31. Tar : it creates a archive file.
32. Uname -a : it shows your system information
33. W : it shows current Logged users in server.
34. Whoami : Use whoami to find out who you are logged in as or who is logged into an
unmanned Linux terminal.
35. Hostname : it shows your system ip address.
36. Diff : it compare difference between two text files.
37. Man : it shows command information.
38. Finger : it shows the user info.
39. Ssh : command allow users to connect remote Linux machines.
40. Paaswd : users can change a password of a user.
41. Cp : it copies files from one file to another file.