≡ Menu

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

xargs: How To Control and Use Command Line Arguments

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

Bash For Loop Examples

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

How do I change the I/O scheduler for a particular hard disk without rebooting my Linux server system?
[click to continue…]

FreeBSD Display Environment Settings

Q. How do I display shell environment settings under FreeBSD operating systems?
[click to continue…]

Bash While Loop Example

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

How To Read / Print $PATH Shell Variable

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