≡ Menu

linux shell

Howto: Call Shell Script function In echo statement

I need to call the function called foo() using echo command in the same statement. How do I all or invoke the function using the echo statement?
[click to continue…]

Bash: Continue In a For / While Loop

How do I continue in a for or while loop in Bash under UNIX or Linux operating systems?
[click to continue…]

How do I call Oracle or MySQL sql statements in UNIX / Linux shell scripts?
[click to continue…]

Shell Scripting: Check File Size ( Find File Size )

How do I find out file size under UNIX / Linux operating system and store the same to a variable called s?
[click to continue…]

Q. How do I find out more information about Portable Document Format (PDF) document from a shell prompt? How do I find out information such as what software used to create a pdf file, its page size, and its creation date etc, using the terminal?
[click to continue…]

Linux / UNIX Shell: Sort IP Address

Q. I'd like to sort a list of IP address stored in a text file. How do I sort by last notation or entire address under Linux or UNIX 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