0% found this document useful (0 votes)
35 views2 pages

Basic Unix Commands

The document shows basic UNIX commands used by a user named N. Anandhi with registration number 41909104006. It demonstrates commands like cal, echo, date, mkdir, cd, cat, cp, pwd, wc, rm, mv, who am i, head, tail and sort to display the calendar, print text, check date and time, create and change directories, create, copy and view files, check present working directory, count words in a file, remove files, rename files, check current user identity, view first/last lines of a file and sort lines of a file respectively.

Uploaded by

Elven Sepdracode
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

Basic Unix Commands

The document shows basic UNIX commands used by a user named N. Anandhi with registration number 41909104006. It demonstrates commands like cal, echo, date, mkdir, cd, cat, cp, pwd, wc, rm, mv, who am i, head, tail and sort to display the calendar, print text, check date and time, create and change directories, create, copy and view files, check present working directory, count words in a file, remove files, rename files, check current user identity, view first/last lines of a file and sort lines of a file respectively.

Uploaded by

Elven Sepdracode
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

NAME:N.

ANANDHI

REG.NO:41909104006

BASIC UNIX COMMANDS

[cse2b4@localhost ~]$ cal 12 2009

December 2009

Su Mo Tu We Th Fr Sa

1 2 3 4 5

6 7 8 9 10 11 12

13 14 15 16 17 18 19

20 21 22 23 24 25 26

27 28 29 30 31

[cse2b4@localhost ~]$ echo "Hi"

Hi

[cse2b4@localhost ~]$ date

Thu Mar 17 14:10:24 IST 2011

[cse2b4@localhost ~]$ mkdir anandhi1

[cse2b4@localhost ~]$ cd anandhi1

[cse2b4@localhost anandhi1]$ cat >anandhi1

this is anandhi

line 1

line 2

[cse2b4@localhost anandhi1]$ cp anandhi1 anandhiii

[cse2b4@localhost anandhi1]$ pwd

/home/cse2b4/anandhi1

[cse2b4@localhost anandhi1]$ cat anandhi1


this is anandhi

line 1

line 2

[cse2b4@localhost anandhi1]$ wc anandhi1

3 7 30 anandhi1

[cse2b4@localhost anandhi1]$ rm anandhi

[cse2b4@localhost anandhi1]$ rm anandhi1

[cse2b4@localhost anandhi1]$ mv anandhi1 anandhi

[cse2b4@localhost anandhi1]$ who am i

cse2b4 pts/0 2011-03-17 13:14 (83.0.4.70)

[cse2b4@localhost anandhi1]$ head -1 anandhiii

this is anandhi

[cse2b4@localhost anandhi1]$ tail -2 anandhiii

line 1

line 2

[cse2b4@localhost anandhi1]$ sort anandhiii

line 1

line 2

this is anandhi

You might also like