0% found this document useful (0 votes)
3K views1 page

LIST OF BASIC PuTTY COMMANDS

This document lists basic PuTTY commands and their purposes: 1) Commands like pwd, cd, ls are used to navigate directories and view file listings. pwd shows the current working directory, cd changes directories, and ls lists files. 2) Commands like cp, mv, mkdir are used to copy, move, and create files and folders. cp copies files, mv moves or renames files, and mkdir creates new folders. 3) Commands like zip, tar, rm compress and delete files. zip compresses folders into zip files, tar compresses folders into tar archives, and rm deletes files and folders.

Uploaded by

Kasane Teto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3K views1 page

LIST OF BASIC PuTTY COMMANDS

This document lists basic PuTTY commands and their purposes: 1) Commands like pwd, cd, ls are used to navigate directories and view file listings. pwd shows the current working directory, cd changes directories, and ls lists files. 2) Commands like cp, mv, mkdir are used to copy, move, and create files and folders. cp copies files, mv moves or renames files, and mkdir creates new folders. 3) Commands like zip, tar, rm compress and delete files. zip compresses folders into zip files, tar compresses folders into tar archives, and rm deletes files and folders.

Uploaded by

Kasane Teto
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

LIST OF BASIC puTTY COMMANDS

Syntax Purpose
Shows the present working
pwd
directory
Used to navigate into a specific
cd
directory in a server
cd /home Navigates into the home folder
cd . Remains in the same directory
cd .. Move back one directory
cd - Go to previous directory
cd ~ Go to home directory
cd / Navigate to root directory
Used in a folder to display all
ls [option][file]
its contents
ls -a Displays all files in a directory
ls -h Displays contents with file size
ls -is List files by files size
List all folders in directory
ls -alh
with details
cp [filename with file
Copy a file
extension][directory]
cp -r Copy folder with all files
mv [filename with file
Moving a file
extension][directory]
mv [filename with file
extension][directory][new Moving and renaming a file
filename]
mv [filename].. Move file up one directory
mkdir [folder name] Create a folder
touch [filename with file Creates different files and file
extension] extensions
zip -r [foldername].zip
Compressing folders
[foldername]
unzip [foldername].zip Uncompressing folders
tar -czvf [foldername].tar.gz Compressing folders using tar -
[foldername] czvf
rm [filename with file extension] Deletes a file on your server
Removes all files from a
rm * [foldername]
directory
rmdir Removes a folder/directory
chmod Changes file permissions
Change permissions of folder and
chmod 775 [foldername] -R
all files inside

You might also like