1. tar command examples Create a new tar archive. $ tar cvf archive_name.tar dirname/ Extract from an existing tar archive. $ tar xvf archive_name.tar View an existing tar archive. $ tar tvf archive_name.tar More tar examples: The Ultimate Tar Command Tutorial with 10 Practical ...
The above command would produce a file with namea.out 2. Show each component as invoked using -### This option makes the cc compiler to invoke all the compilation stages but doesn’t actually compile the code. Its more like a test simulation. cc -### helloworld.c After executing the a...
14. cd command examples Use “cd -” to toggle between the last two directories Use “shopt -s cdspell” to automatically correct mistyped directory names on cd More cd examples: 6 Awesome Linux cd command Hacks 15. gzip command examples To create a *.gz compressed file: $ gzip test.tx...
Thepingcommand sends echo requests to the host you specify on the command line and lists the round-trip time of responses. When you terminateping, it summarizes the results, giving you an average round-trip time and percent packet loss. Usepingtodetermine network connection problemsbetween two h...
3 chmod examples Syntax and Options Related Commands What is chmod? chmod stands for change mode, which changes the file or directory mode bits. To put it simply, use chmod command to change the file or directory permissions. Following is a sample of ls -l command output. In this, the ...
5. sed command examples When you copy a DOS file to Unix, you could find \r\n in the end of each line. This example converts the DOS file format to Unix file format using sed command. $sed 's/.$//' filename Print file content in reverse order ...
I had added most useful ls command options in the above examples. If you are looking for other options, i would suggest you to check the man page of ls command. Also, i would request you to update your comment in our comment section, if so, we can try to help you on this. ...
of=/tmp/test1.img(of=/path/to/output.file)Indicates the output file that you want to write using the DD command bs=1G(bs=block-size)Indicates the size of the block that you want DD to use (here I have used 1 GB as a block) ...
5. sed command examples When you copy a DOS file to Unix, you could find \r\n in the end of each line. This example converts the DOS file format to Unix file format using sed command. $sed 's/.$//' filename Print file content in reverse order ...
More cd examples:6 Awesome Linux cd command Hacks 15. gzip command examples To create a *.gz compressed file: $ gzip test.txt To uncompress a *.gz file: $ gzip -d test.txt.gz Display compression ratio of the compressed file using gzip -l ...