≡ Menu

Linux For Beginners & Advanced Users

Tutorials, howtos, faqs, hacks, and tips about GNU/Linux operating systems for Linux users sorted by easy, intermediate and advanced level. ( rss feed ).

yum Command: List The Contents (Files) Of A Package

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?
[click to continue…]

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 .

Tutorial details
DifficultyEasy (rss)
Root privilegesNo
Requirementsawk and bash
Estimated completion timeN/A

How do I print all lines that have three (3) words only?
[click to continue…]

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?
[click to continue…]

How do I check in GNU/Bash if a shell is running in interactive mode or not while writing shell scripts?
[click to continue…]


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?

[click to continue…]

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?
[click to continue…]

Linux dd Command Show Progress Copy Bar With Status

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?
[click to continue…]