Skip to main content

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 /home

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

rm – remove a file
syntax to remove one file : rm
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 votes
Article Rating

Author Dhillon

More posts by Dhillon

Leave a Reply

Inline Feedbacks
View all comments
Would love your thoughts, please comment.x