Linux

The rpm -qi command list the files of a package. How do I use yum command to list the contents of a package under CentOS or RHEL installed on IBM server hardware?

{ 1 comment }

I have a sample data file:


This is a test.
Unix is Best.
No Linux is the Best.
Space in simple understanding is an area or volume.
Outer space .

I need the output:

Unix is Best.
Outer space .

How do I print all lines that have three (3) words only?

{ 2 comments }

How do I use the rsync tool to copy only the hidden files and directory (such as ~/.ssh/, ~/.foo, and so on) from /home/jobs directory to the /mnt/usb directory under Unix like operating system?

{ 6 comments }

How do I check in GNU/Bash if a shell is running in interactive mode or not while writing shell scripts?

{ 5 comments }


The following question was asked in the Unix networking exam:

How do you speed up ping and traceroute command responses under Unix or Linux operating systems?

{ 2 comments }

I‘m using Debian Linux as my development workstation. I would like to search a directory called ~/projects/ recursively for “foo” word only for *.txt files. How do I search all text files in ~/projects/ for “foo” word using grep command?

{ 8 comments }

I‘m using dd command for block level copy and just found out that there’s no built in way to check the progress. How do I use the Linux or Unix dd command while coping /dev/sda to /deb/sdb and display a progress bar when data goes through a pipe?

{ 7 comments }