50 Most Frequently Used UNIX / Linux Commands (With Examples) 1. tar command examplesCreate a new tar archive.$ tar cvf archive_name.tar dirname/Extract from an existing tar archive.$ tar xvf archive_name.tarView an existing tar archive.$ tar tvf archive_name.tar 2. grep command examplesSearch for a given string in a file (case in-sensitive search).$ grep -i "the" demo_filePrint the matched line, along with the 3 lines after it.$ grep -A 3 -i "example" demo_textSearch for a given string in all...
Friday, June 10, 2011
Subscribe to:
Posts
(
Atom
)