Determine file type
May 27,93To determine the file type in Linux, we can use the file command. This command runs three sets of tests: the filesystem …
Read MoreCount lines in a file
May 27,93wc (short for word count) is a command in Linux that displays a count of lines (newline characters, to be …
Read MoreSearch for files using locate
May 27,93The locate command searches a database of filenames in Linux. Unlike the find command, which can find files by permissions, …
Read MoreSearch for files using find
May 27,93The find command is used in Linux to search for files in the directory tree starting from the location specified. …
Read MoreSearch for text strings using grep
May 27,93The grep tool is used to locates files by scanning their content. You can search a single file or a whole …
Read MoreSort lines of a text file
May 27,93The sort command is used to sort the lines of a text file in Linux. You can provide several command …
Read More