Articles
Create a compressed archive (tape archive): tar zcvf archive.tar.gz dirtar jcvf archive.tar.bz2...
Create a directory: mkdir dir Create nested directories: mkdir -p dir1/dir2Changing...
Add write permissions to the current user:chmod u+w fileAdd read permissions to users in the file...
Compress a file:gzip file (.gz format)bzip2 file (.bz2 format, better)lzma file (.lzma format,...
Concatenate and display file contents:cat file1 file2Display the contents of several files...
Show the total size on disk of files or directories (disk usage): du -sh dir1 dir2 file1...
Concatenate all “regular” files: cat *Concatenate all “hidden” files: cat .*Concatenate all files...
If you know the proper commands, File Management becomes easier. Following are the basic Linux...
Show only the lines in a file containing a given substring: grep substring fileCase insensitive...
Show all running processes: ps -efLive hit-parade of processes (press P, M, T: sort by Processor,...
The Linux File Hierarchy Structure or the Filesystem Hierarchy Standard (FHS) defines the...
List all “regular” files (not starting with .) in the current directory:lsDisplay a long...
Find all files in the current (.) directory and its subdirectories with log in their name: find...
Redirect command output to a file:ls *.png > image_filesAppend command output to an existing...
Comparing 2 files: diff file1 file2Comparing 2 files (graphical):gvimdiff file1 file2tkdiff file1...