Day to Day Commands

Day to Day Commands

Part - 1

·

1 min read

Cut

allows you to cut out sections of a specified file or piped data and print the result to standard output

Note:- Press cut --help for more commands

sort

used to sort files

Uniq

used to extract unique occurrences

tr

utility for translating or deleting characters

grep

searches a file for a pattern of characters and displays all lines that match

awk

a scripting language used for text processing

sed

stream editor used to perform lots of functions on files, like searching, find and replacing, insertion, or deletion

sed 's/old_string/new_string/' filename.txt

sed 's/box/bin/' foxinbox.txt

pstree

used to show running processes in a tree (data structure)

latest

displays a list of the most recently logged-in people

w

display a list of the currently logged-in user sessions