Summary of commands
Let’s have a look at the use of all the commands that are discussed in the videos above.
- cut: It is used for cutting sections from each line of an input file and then printing it on the standard output.
- uniq: It is used to delete all the repeated lines that exist in an input file.
- tr: It is used to translate and delete characters in a file. This translation includes changing uppercase to lowercase, deleting certain characters, finding and replacing characters and deleting repeating characters.
- Isof: It stands for List of Open Files. It tells you which files are opened by which process. In Linux, the pipes, sockets and directories are also considered as files. Isof gives us the list of all open files belonging to all active processes.
- id: It is used to find out the user ID and the group ID of any user in the server.
- whoami: It is used to display the username of the current logged in user on the system.
- more: It is used to view files in a scrollable manner. If the file is large, this command displays one screen at a time. It allows the user to scroll up and down through the file.
- less: It is used to display the contents of a file one page at a time. It has faster access as compared to the more command because, in case of a large file, less accesses the file page by page rather than accessing the complete file.