Shells: 01- Introduction - Linux Commands

Shell Scripts are the main feature of linux distributions.

Lets know what wikepedia defined about shell scripts[wikipedia page]. Before starting shell script we must learn some important linux/unix commands which makes wonder with shell scripting.

GENERAL COMMANDS

Command

Description

Help Page [man]

apropos

apropos searches a set of database files containing short descriptions of system commands for keywords and
displays the result on the standard output.


Ps2pdf

The ps2pdf scripts are work-alikes for
nearly all the functionality (but not the user interface) of Adobe's Acrobat Distiller product: they convert PostScript files to Portable Document Format (PDF) files.


which

Which takes one or more arguments. For each of its arguments it prints to stdout the full path of the executables that would have been executed when this argument had been entered at the shell prompt.


time

The time command runs the specified program command with the given arguments. When command finishes, time writes a message to standard output giving timing statistics about this program run.


cd

Change the current directory to dir. The variable HOME is the default dir.


gzip

Gzip reduces the size of the named files using Lempel-Ziv coding (LZ77). Whenever possible, each file is
replaced by one with the extension .gz, while keeping the same ownership modes, access and modification times.


echo

Echo the STRING(s) to standard output.




Now the TRICKY part TRY : echo "I live in `locale territory`"


Linux is great right ?

0 comments:

Post a Comment