How to use Putty: commands and useful features

PuTTY – SSH- . SSH (Secure Shell) . PuTTY . SSH, PuTTY : SCP, Telnet, rlogin raw socket. PuTTY Microsoft Windows, . PuTTY-.

PuTTY

PuTTY , , . PuTTY Windows. putty.exe. putty.exe Next. Create a desktop icon for Putty Next. Install, .

PuTTY . . :

  1. Host Name or IP address IP- , , server.yourdomain.com ( ).
  2. Port 22. SSH.
  3. (Connection type) SSH.
putty commands




Open. , , , . , Yes.





, . Enter. , , . , . Enter. , . Linux-, .

, PuTTY . , , – IP-, , , . . .

30 SSH PuTTY

PuTTY, , Linux Windows. PuTTY , .

.

ssh putty commands




1. , :





pwd

pwd .

2. :

cd

cd .

: cd /home ( /home).

3. :

cd .

, , , . , , , .

4. :

cd ..

.

5. :

cd –

, .

6. :

cd ~

/home ( Linux).

7. :

cd /

.

PuTTY, .

putty no commands are entered




8. :

ls

ls .

: ls /home ( ).

9. , :

ls –a

10. :

ls –h

11. :

ls –r

12. , :

ls -is

13. :

ls -alh

PuTTY, .

putty command list




14. :

cp

, cp. : cp [] [ ].

: cp filename.php /home/filename.php

15. :

cp –r

.

16. :

cp filename.php /home/filename2.php

Putty , , .

17. :

mv

mv . : mv [] [ ].

: mv page.php /home/page.php.

18. :

mv page.php /home/newpage.php

19. :

mv [ ] ..

: mv index.html/ ..

PuTTY-

.

20. :

mkdir

: mkdir new-folder

21. :

touch

touch .

: touch index.php

putty run commands




PuTTY / .

22. ZIP-:

zip -r [_.zip] [_]

: zip -r newfolder.zip newfolder

23. ZIP-:

unzip

: unzip newfolder.zip

24. TAR:

tar -czvf [_.tar.gz] [_]

: tar -czvf wp-content.tar.gz wp-content

25. TAR:

tar -xvf

: tar -xvf wp-content.tar.gz

26. :

rm

, rm.

: rm index.php

27. :

rm *

.

: rm * /home/folder

28. :

rmdir

: rmdir /home/folder

/

putty commands




, PuTTY chmod, . , .

:

chmod [] [] [_]

:

29. :

chmod 754 newfolder

30. :

chmod -R 754 newfolder

, .

, Linux:

  • ;
  • ;
  • .

, :

  • (4);
  • (2);
  • (1);
  • (0).

, , 754, ( ), ( ) ( ). , .

, 7 , , (4 + 2 + 1 = 7). 5 (4 + 1 = 5), 4 (4).

.

, PuTTY:

  • PuTTY Shift+Insert.
  • Ctrl+U.
  • , Ctrl+C.
  • Clear the terminal window from the results of the previous commands - Ctrl + L.

This material is a brief overview of working with the PuTTY terminal client. For more information on PuTTY commands, use the Unix / Linux command reference.




All Articles