echo command

How do I display my current path settings under Linux / FreeBSD / OpenBSD / NetBSD / Apple OS X / UNIX like operating systems using bash or ksh or csh / tcsh shell?

{ 2 comments }

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?

{ 49 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?

{ 234 comments }

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

{ 9 comments }

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

{ 2 comments }

How do I use bash while loop to repeat certain task under Linux / UNIX operating system? How do I set infinite loops using while statement?

{ 22 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 }