Linux Commands: Name: Nisarg Shah Registration No: 16MES0057 Worksheet-1
Linux Commands: Name: Nisarg Shah Registration No: 16MES0057 Worksheet-1
Linux Commands:
COMMAND
cal
cat
SYNTAX
DESCRIPTION
cal
cal [year]
cat [filename]
Cd
cd [directory name]
cd ..
directory.
It is used to come out from the specified
cd ~
directory.
It is used to come out directly from the
specified
directory
to
the
parent
chgrp
directory.
It is used to change the owning group of
chmod
[filename]
chmod xxx [filename]
file.
It is used to change excess permission of
clear
clear
specified file.
It will clear the terminal.
cp
date
cp [file1name] [file2name]
date
chown
COMMAND
SYNTAX
DESCRIPTION
date +%m
date +%h
system.
It will show current month name of
date +%m%h
system.
It will show current month number and
date +%r
echo
echo string
gedit
gedit [filename]
terminal.
It will open the specified file and if there
diff
kill [PID]
man
pages.
It will create directory with specified
mv
ls
filename]
ls
mkdir
directory.
ls x
ls a
COMMAND
SYNTAX
ls l
DESCRIPTION
It will list the files present in current
directory column with all information
when it is created, its size, file type and
excess permission etc.
ps
ps
pwd
rm
rm [filename or directory
directory.
It will remove the specified file or
uname
name]
uname a
directory.
It will show all the information like OS
uname n
uname o
uname s
uptime
wc [filename]
whoami
specified file.
It will show information about current
grep
user.
It searches file for specified words or
head
patterns.
It writes the first ten lines of a file to the
less
less
screen.
This command writes the content ofa file
tail
tail
pwd
uptime
wc
whoami
grep
head
screen.
COMMAND
who
SYNTAX
DESCRIPTION
who
who | wc-l
on.
The output of who command is given as
input to the grep command, so that it will
print if particular user name if he is
sleep 10
bc
bg
jobs
bg
jobs
calculator.
It runs the process in background.
It will helpful to list the jobs that are
chattr
cmp
chattr
cmp
sleep
bc
cut
different.
It is used to cut out selected fields of
host
free
free
ip.
This command displays the information
about the free and used memory on the
system.