Archive for the ‘UNIX’ Category

Awk One Liners

Print column1, column5 and column7 of a data file or output of any columns list awk ‘{print $1, $5, $7}’ data_file cat file_name |awk ‘{print $1 $5 $7}’ ls –al |awk ‘{print $1, $5, $7}’ — Prints file_permissions,size and date List all files names whose file size greater than zero. ls –al |awk ‘$5 > [...]

Continue reading »

SMP Symmetric Multiprocessing

SMP (symmetric multiprocessing) is the processing of programs by multiple processors that share a common operating system andmemory. In symmetric (or "tightly coupled") multiprocessing, the processors share memory and the I/O bus or data path. A single copy of the operating system is in charge of all the processors. SMP, also known as a "shared [...]

Continue reading »

Crontab

Setting up cronjobs in Unix and Solaris cron is a unix, solaris utility that allows tasks to be automatically run in the background at regular intervals by the cron daemon. These tasks are often termed as cron jobs in unix , solaris. Crontab (CRON TABle) is a file which contains the schedule of cron entries [...]

Continue reading »

AWK Tutorial

COINS.txt gold     1      1986  USA                            American Eagle gold     1      1908  Austria-Hungary     Franz Josef 100 Korona silver  10     1981  USA                           ingot gold     1      1984  Switzerland             ingot gold     1      1979  RSA                           Krugerrand gold     0.5   1981  RSA                           Krugerrand gold     0.1   1986  PRC                           Panda silver   1      1986  USA                           Liberty dollar gold     0.25 1986  USA                          Liberty 5-dollar piece silver   0.5   [...]

Continue reading »

SSH and SCP

Setting Up Passwordless Connection Secure Copy or SCP is a means of securely transferring computer files between a local and a remote host or between two remote hosts, using the Secure Shell (SSH) protocol. The term SCP can refer to one of two related things, the SCP protocol or the SCP program. *** use password [...]

Continue reading »

FIND Command

To look across the /bin and /var/html directory trees for filenames that contain the pattern *.htm*, you can use the following command: find /usr /var/html -name “*.htm*” -print Finding udump directory starting from ORACLE_BASE find $ORACLE_BASE -name “udump” -print Finding Directories To find a list of the directories use can use the -type specifier. find [...]

Continue reading »

Korn Shell conditional expressions

A conditional expression is an expression placed between double brackets (‘[[' and ']]’). These expressions are used in conjuction with the test command to test the truth of a comparison. Their use is most beneficial in shell scripts. Word splitting and file name substitution are not performed in the expressions. The table below contains the [...]

Continue reading »

Follow

Get every new post delivered to your Inbox.