≡ Menu


HowTo: Display / Echo Path Settings In Linux / UNIX / *BSD

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…]

HowTo: Unix For Loop 1 to 100 Numbers

I want to run a Unix command 100 times using a for loop from 1 to 100. Can you tell me how to take a block of numbers in a loop under KSH or BASH shell?
[click to continue…]

Linux / UNIX: For Loop To Remove Files

How do I use a for loop in Unix to remove files?
[click to continue…]

Solaris UNIX Configure Disk Quota For UFS File System

How do I configure file system quotas to control how much available storage space can be used on a given UFS file system (such as /export/home) under Solaris UNIX operating systems?
[click to continue…]

FreeBSD Change User Password Shell Script

How do I change user password using a shell script under FreeBSD operating systems?
[click to continue…]

KSH For Loop Examples

Q. How do I use for loop in Korn Shell under UNIX / Linux / BSD / OS X operating systems?
[click to continue…]

Configure BASH, KSH, TCSH, ZSH Shell To Logout User Automatically After Idle Time

tmout on a Linux/Unix shell
How can I configure the bash or ksh shell to logout any user automatically after a period of idle time under a Debian Linux or any other UNIX-like operating system?
[click to continue…]

KSH IF Command Conditional Scripting Examples

How do I use if command with KSH to make decisions on Unix like operating systems?
[click to continue…]

Understanding command line shell

Q. I’ve migrated from Windows NT to Linux workstation. Most documents refer to a command line shell. Can you explain me command line shell?

A. A shell allows you to type the commands such as date or clear. There are many shell available. BASH (bourne again shell) is default shell for most Linux distributions.

It also known as a command interpreter which takes command from user and pass the same to kernel for execution. Bash shell supports aliases, filename completion, command history, POSIX compatibility and many other features.

Other UNIX / Linux shell

  • csh / tcsh
  • sh / ksh

How Do I Find The Largest Top 10 Files and Directories On a Linux / UNIX / BSD?

How do I find the largest top files and directories on a Linux or Unix like operating systems?
[click to continue…]