OS Commands
OS Commands
22- echo “welcome” >> filename: add more content to an existing file
23- cat Filename | less: Pipe is a command in Linux that lets you use two or more
commands 24- cat filename | grep (word): search a particular information in the file
25- cat filename | grep -v (word or letter): Shows all the lines that do
not match the searched string
26- cat filename | grep -i (word or letter): Match both (upper and
lower) case
27- cat filename | grep -c (word or letter): Displays only the count
of matching lines
28- cat filename | grep -n (word or letter): Shows the matching line and
its number