0% found this document useful (0 votes)
26 views

Unix Commands 1.1

This document provides an overview of common Linux commands and tools for navigating directories, writing shell scripts, editing files, and scheduling tasks. It discusses commands like cd, ls, echo, cut, sed, awk, and crontab; and gives examples of using sed and awk to modify files and passing variables to awk scripts from the command line. The goal is to introduce fundamental Linux utilities and concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views

Unix Commands 1.1

This document provides an overview of common Linux commands and tools for navigating directories, writing shell scripts, editing files, and scheduling tasks. It discusses commands like cd, ls, echo, cut, sed, awk, and crontab; and gives examples of using sed and awk to modify files and passing variables to awk scripts from the command line. The goal is to introduce fundamental Linux utilities and concepts.
Copyright
© © All Rights Reserved
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 12

who am i

who

Pwd:

go to current directory

go to parent directory

Going to root: cd /
directory structure : ls

Writing shell script :


Echo command :
Expr

Cut command :

Email:

Sed:

Sed is a Stream Editor used for modifying the files in unix (or linux). Whenever you want to make
changes to the file automatically, sed comes in handy to do this
Awk:
Example2:

awk -f trial1.awk -v FILE_NAME=file1.dat" -v ACT_DATE=30-Oct-2014


file1.dat > file2.dat
C programs :
Crontab
Crontab command format

You might also like