linux shell

Determine file type

May 27,93

To determine the file type in Linux, we can use the file command. This command runs three sets of tests: the filesystem …

Read More

Count lines in a file

May 27,93

wc (short for word count) is a command in Linux that displays a count of lines (newline characters, to be …

Read More

Search for files using locate

May 27,93

The locate command searches a database of filenames in Linux. Unlike the find command, which can find files by permissions, …

Read More

Search for files using find

May 27,93

The find command is used in Linux to search for files in the directory tree starting from the location specified. …

Read More

Search for text strings using grep

May 27,93

The grep tool is used to locates files by scanning their content. You can search a single file or a whole …

Read More

Sort lines of a text file

May 27,93

The sort command is used to sort the lines of a text file in Linux. You can provide several command …

Read More
Geek University 2022