Basic Commands
Basic Commands
Workshop: Linux Command
Prompt
By:
Amit Goyal
(MLC)
Basic Linux Commands
yppasswd to change passwd
ls to list files and directories
cd to change directory
pico To create or edit a file
vim Advance text editor
chmod change file access permissions
pwd shows the "present working directory"
cp copy the files/diectories
mv move or rename the file/directory
Basic Linux Commands
rm remove files/directory
mkdir make a new directory
rmdir deletes a (empty) directory
date show date and time
cal show calendar
du show file space usage
logout make you exit
man show the manual pages
Advance Basic Commands
tin to check newsgroups
telnet to login into other computer/server
ssh secure login into other computer/server
finger look for information about users
logged on server
talk talk to other user
w Show who is logged on and what they
are doing
write write to other users
Advance Basic Commands
ftp to transfer files from one computer to
another
cat print the file(s) on standard output
alias alias a command
locate locate a file containing some
expression
grep print lines matching a pattern
df show harddisk partitions
Advance Basic Commands tar
tar compress/uncompress files/directories
➢ tar xvf file.tar uncompress a file 'file.tar'
➢ tar xzvf file.tar.gz uncompress a file
'file.tar.gz'
➢ tar xjvf file.tar.bz2 uncompress a file
'file.tar.bz2'
➢ tar cvf file.tar file compress the file 'file' to
'file.tar'
➢ tar czvf file.tar.gz file compress the file 'file'
to file.tar.gz
➢ tar cjvf file.tar.bz2 file compress the file
'file' to file.tar.bz2
Some more fundaes
How to use export to open graphical
applications from other computer?
Use <TAB> for the command completion
use reverse search "Ctrl+r"
!! get previous commands