FAQ tagged as:

echo command

I am trying to use xargs command using shell pipes and not able to understand how to control and use command line arguments. For example I’d like to find out all *.c file located in 100s of sub-directories and move them to another directory called ~/old.src. How do I use command line args with xargs to achieve the same?

{ 10 comments }

How do I use bash for loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using for statement? How do I use three-parameter for loop control expression?

{ 79 comments }

How do I change the I/O scheduler for a particular hard disk without rebooting my Linux server system?

{ 5 comments }

Q. How do I display shell environment settings under FreeBSD operating systems?

{ 0 comments }

Q. How do I use bash while loop to repeat certain task under Linux / UNIX operating system?

{ 5 comments }

Q. I’m new to Unix / Linux and I’d like to print current values of $PATH variable. How do I read $PATH from a shell prompt?

{ 0 comments }

Q. How do I print current path settings under BASH shell? I’m using Debian Linux.
A. In UNIX / Linux file systems, the human-readable address of a resource is defined by PATH. On Unix / Linux like operating systems, (as well as on DOS / Windows and its descendants), PATH is an environment variable listing a [...]

{ 0 comments }

nixCraft FAQ PDF Collection Now Available To All