basep.blogg.se

Putty download program
Putty download program










putty download program

This command is used to delete all contents from a directory. To delete a file on your server just use the rm command.Ģ7) Delete all files from a directory rm * Use the touch command to create different files and file extensionsĮxample: touch index.php How to Compress/Uncompress files?Ģ2) Compressing folders zip -r foldername.zip foldernameĢ4) Compressing folders using tar -czvf tar -czvf foldernameĮxample: tar -czvf wp-contentĢ5) uncompressing folders using tar -czvf tar -xvf Įxample: tar -xvf How to Delete/Remove files? How to Create files/folders using Putty Commands This one is used to copy the entire folder with all it’s contents.ġ6) Copy and rename cp filename.php /home/filename2.php How to Move files to different locationsġ8) Move and rename mv page.php /home/newpage.phpġ9) Move file up one directory mv filename. To copy a file just use the cp ssh command. The ls -r command is used to see sub-directories recursively.ġ3) List all folders in directory with details ls -alh How to Copy files/folders with Putty Commands If you wish to see a directory’s contents with file sizes just type ls -hġ1) How to see sub-directories recursively ls -r Will return all content of the folder /home.ĩ) Show me all files in a directory ls -a Using the ls command in a folder will display all it’s content. Using this command you will remain in the same directory you were.Ībove command will navigate two steps back from current directoryĪbove command will navigate to the previous directory.Ībove command will navigate to the home directory on your server.Ībove command will navigate to root. The cd command is used to navigate into a specified directory on your server.Įxample: cd /home (moves you into the home folder) 1) How to find out where you are, the pwd command shows you present working directory.












Putty download program