gzip command examples in linux
Linux command gzip is used to compress files or extract .gz files,below will show you some examples. 1.Compress file01 to file01.gz with gzip command bash-3.2$ ls dir1 file01 bash-3.2$ gzip file01...
View ArticleLinux unzip example
Linux command unzip is used to list, test and extract compressed files in a ZIP archive file(compressed via zip command).Below will show you some examples about how to use unzip command. 1.List the...
View Articlelinux zip directory recursive example
Linux command zip is used to compress files,below will show you some examples about how to use zip command ,include how to zip directory recursive First we will use a directory named dir1 to do...
View ArticleLinux tar command examples
Linux tar command is an useful archive utility for both admin and users.Below will show you some simple examples 1.Archive a directory dir1 using command tar and verbosely list files processed <pre...
View ArticleLinux grep command examples
Linux grep command is used to print lines matching a pattern. 1.Search for a specific string from a file bash-3.2$ grep root /etc/passwd root:x:0:0:root:/root:/bin/bash...
View ArticleLinux df command examples
Linux command dd is used to report file system disk space usage,normally we can use it to see how many disk space is used and how many is left.Here we go,let's see some examples 1.Report all disk space...
View Articlelinux dd command examples
1.Copy a whole hard disk using dd(Replace X and Y with your own number) dd if=/dev/hdX of=/dev/hdY 2.Copy a hard disk to an image file dd if=/dev/hdx of=/path/to/image 3.Do the same thing as example 2...
View ArticleLinux cut command examples
Linux cut command is used to remove sections from each line of files.Below is some simple examples: 1.cut the first 1-3 bytes from output bash-3.2$ date |cut -b 1-3 Fri 2.cut 1-3 and 6 and 8-15 bytes...
View ArticleLinux awk examples
Below will show you several simple awk command examples. 1.The first awk example,which will show you the whole content of file /etc/passwd bash-3.2$ awk '{print}' /etc/passwd...
View ArticleLinux cpio examples
Linux command cpio copies files into or out of a cpio or tar archive, The archive can be another file on the disk, a magnetic tape, or a pipe. Examples: 1.Archive a single directory using cpio,and we...
View Article
More Pages to Explore .....