Utilities for Linux Scripts

Literally, there are hundred of utilities in Linux which you can use to solve problem in Linux. This is the list of selected utilities which are frequently used in scripts in Linux operating system.

1. at : This reads command from a file and executes the command at the specified time.

2. awk : This is a text processing language used in Linux to perform some sophisticated text processing.

3. chvt : This allows a single user to login to Linux system a number of times.

4. cksum : This calculates CRC and prints it along with total number of bytes.

5. clear : This clears the terminal screen.

6. cmp : This performs the binary comparison of two files.

7. compress and uncompress : It does compression and un-compression of file using Lempel-Ziv coding.

8. cut : This is used to extract characters.

9. diff : This reads through two text files and shows differences between them.

10. env : This is used to view, set and clear environment variables.

11. expr :  It evaluates the expression supplied to it and writes the results to standard out.

12. find : It is used to search files.

13. fmt : This formats text lines.

14. fold : This accepts text as input and then breaks it into shorter lines.

15. grep : This stands for Get REgular Expression and sercahes through one or more files to find matches for a regular expression.

16. groups : This retrieves a list of group names.

17. gzip and gunzip : This is used to compress and uncompress files and compressed file has .gz extension.

18. head : This copies first few lines of a file to the standard out.

19. killall : This kills all processes started by the specified command.

20. look : This is used to find lines that begins with a specific string in a already sorted file and displays it.

21. nohup : This prevents a process being stopped.

22. mkdir : This creates a directory.

23. paste : This is used to combine the contents of text files by concatenating lines.

24. pr : This is used to format the text for printing

25. printf : This is used to format text for display.

26. rm : This is used to remove / delete files.

27. rmdir : This is used to remove empty directory.

28. sed : This is a stream editor.

29. sort : This is used to sort a file, merge two sorted files and test a file to check if it is already sorted.

30. tail : This copies last few lines of a file to the standard output.

31. tar : This stores a number of files and directories into a single file.

32. tty : It prints the name of the terminal connected to standard input.

33. uniq : It removes the consecutive duplicate lines from a file.

34. users : It displays the list of currently logged in users.

35. wall : This is used to send a message to every logged in users.

36. wc : This prints number of lines, words and bytes in a text file.

37. who : This lists information about currently logged in users.

38. zip and unzip : This compresses a collection of files and store them into a single file and unzip does the opposite.

No comments:

Post a Comment

Commonly Used Abbreviations Used Daily

Although, we tend to use short form of long words in daily life but there are many abbreviations which we don't remember. Below is the l...