About Me

My photo
Vijayapur, Karnataka, India
I am interested in Teaching.

Thursday 22 December 2016

Important Unix commands for Annual Examination!

Dear student,
        You must know the use of following commands with syntax and minimum 3 examples. i.e. You need to explain the command with syntax and few examples.

date

cal

who

ls 

ls with options

ps

wc

echo

printf

man

bc

tty

pwd

Working with directories:
mkdir   cd    cd ..   rmdir

Absolute and Relative Pathnames

Working with files:

cat    rm    cp   mv

rm options

more

lp

od    cmp   comm   diff

File Permissions (Important)

ls -d

Absolute and Relative Permissions

chmod

Syntax:
$ chmod category operations permission filename(s);

Where,
User : user, group, others
Operation: assing(+) or remove(-)
Type of permission: (read, write, execute)

Few examples:

Absolute Permissions:
Table 6.2 : Sumitabha Das Author
Page . 113 (remember and write this table)

Few Examples:

$ chmod 666 filename

Directory Permissions

The vi editor:
The Three Model diagram

Input mode commands
Save and Exit commands of the Ex mode
Navigation commands

Pattern Matching: The Wildcards
*
?
[ijk]
[x-]
[!ijk]
[!x-z]
 Explain above with examples

The * and ?

Matching the Dot

Use ls command to write examples for above options.

Escaping & Quoting

Redirections : (imp)
Standard Input
Standard Output
Examples with diagrams as given in notes.

pipe, tee

What is process? examples.

Parent and Child processes

ps with options (imp)

Mechanism of process creation
Fork, Exec, Wait

sort with options (imp)

nice, nohup, kill, bg, fg, jobs,

at and batch

cron and crontab (imp)


time: timing processes

Environment Variables

.profile

head, tail, cut, paste

grep: Searching for a pattern (imp)

grep options

few examples

egrep

few examples.

BRE(Basic Regular Expressions)

sed (The stream editor)
Syntax
Few examples.

The Tagged Regular Expression(TRE)

read command

conditional statements, case statement, loop statements (vimp)


What is perl? Write structure of perl script. (imp)

chop

Staring handling function in perl

The $_ and $.

Lists and Arrays

foreach, split, join

Associative arrays

Good luck for examination!

Note: Send your feedback to cs.kusur@gmail.com

























No comments:

GCD of two numbers and its application...

The greatest common divisor (gcd) of two numbers is the largest positive integer that divides both numbers without leaving a remainder. The ...