Putty Commands

By September 26, 2009Server Admin

Putty Commands

ls – to list files in a directory
syntax: ls

dir – same as ls
syntax: dir

cd – change directory
syntax: cd /home

cp – copy a file

syntax: cp file.zip /home

mv – move a file (also used to rename files)
syntax to move : file.zip /home
syntax to rename : oldfile.zip newfile.zip

rm – remove a file
syntax to remove one file : rm file.zip
syntax to remove all zip files : rm *.zip
syntax to remove all files : rm -rf *
syntax to remove a directory : rm -rf directoryname

mkdir – make directory
syntax: mkdir newdirectory

0 0 vote
Article Rating

Author Dhillon

More posts by Dhillon
Notify of
Inline Feedbacks
View all comments
Would love your thoughts, please comment.x