Linux Admin – cut Command
cutĀ andĀ grepĀ are two of the most useful and common commands for a CentOS Administrator. The cut is extremely useful for dealing with delimited files such as Linux configuration files, Linux preference…
cutĀ andĀ grepĀ are two of the most useful and common commands for a CentOS Administrator. The cut is extremely useful for dealing with delimited files such as Linux configuration files, Linux preference…
The cat command is used to concatenate files and print to standard output. Formerly, we have demonstrated both uses and abuses with the cat command. cat servers the following distinct purposes ā…
The teeĀ is a simple command, letting an administrator write command output and view a file at the same time. This simple command can save time over first writing stdout to…
Following are the common switches used withĀ uniq. This command reports or omits repeated lines. SwitchAction-cPrefix lines by the number of occurrences-iIgnore case-uOnly print unique lines-wCheck chars, compare no more than n chars-sSkip…
sortĀ has several optimizations for sorting based on datatypes. This command writes sorted concatenation of all files to standard output. However, be wary, complex sort operations on large files of a…
wc is useful for counting occurrences in a file. It helps print newline, word, ad byte count from each file. Most useful is when combined with grep to show matches for…
The head is the basic opposite of the tail in relation to what part of the file operations are performed on. By default,Ā the headĀ will read the first 10 lines of…
The tailĀ will output (stdout) the last part of a text file. Most useful when perusing long text files and we only need to see the current updates. SwitchAction-cOutput last denoted…
Both more and fewer commands allow pagination of large text files. When perusing large files, it is not always possible to use grep unless we know an exact string to search. So we would want to…
grep is commonly used by administrators to ā Find files with a specific text stringSearch for a text string in logsFilter command out, focusing on a particular string Following is a…