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

Linux Commands

this pdf contain some information of linux commands

Uploaded by

Abubakar Quadri
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Linux Commands

this pdf contain some information of linux commands

Uploaded by

Abubakar Quadri
Copyright
© © All Rights Reserved
Available Formats
Download as ODT, PDF, TXT or read online on Scribd
You are on page 1/ 3

Experiment no.

:- 1

Aim :-

Study the features of linux enviroment, basic Linux


commands ( echo, who, date, pwd, cd, mkdir, rmdir, ls, cp,
mv, rm, cat, more, Wc, find, tail, head, sort, nl, uniq, grep,
egrep, fgrep, cut, paste, join, tee, comm, cmp, diff, tr), also
document the syntax and semantics of those commands.

Linux Commands:-

1. echo :-

The "echo" command helps us move some data, usually text into a file. For
example, if you want to create a new text file or add to an already made
text file, you just need to type in, “echo hello, my name is abubakar >>
new.txt”. You do not need to separate the spaces by using the backward
slash here, because we put in two triangular brackets when we finish what
we need to write.

2. who :-

The who command displays the following information for each user
currently logged in to the system if no option is provided.Login name of
the users, Terminal line numbers , Login time of the users in to system ,
Remote host name of the user.
Output:-

com@com-H81:~$ who
com :0 2021-02-14 01:54 (:0)
3. date:-
Date command is used to display the system date and time. date
command is also used to set date and time of the system. By default the
date command displays the date in the time zone on which unix/linux
operating system is configured.You must be the super-user (root) to change
the date and time.

Syntax: 
 
date [OPTION]... [+FORMAT]
date [-u|--utc|--universal] [MMDDhhmm[[CC]YY]
[.ss]]

Output :-

com@com-H81:~$ date

Saturday 13 February 2021 08:59:44 PM IST

4. pwd :-

The pwd command is a command line utility for printing the current
working directory. It will print the full system path of the current working
directory to standard output. By default the pwd command ignores
symlinks, although the full physical path of a current directory can be
shown with an option. The pwd command is normally a shell builtin
meaning it is part of the code that runs the shell rather than an external
executable.
Output:-

com@com-H81:~$ pwd
/home/com

5. cd :-

The cd (“change directory”) command is used to change the current


working directory in Linux and other Unix-like operating systems. It is one
of the most basic and frequently used commands when working on the
Linux terminal.

Output :-

com@com-H81:~$ cd Desktop/
com@com-H81:~/Desktop$

You might also like