PuTTY -30 Useful Putty Commands For Beginners

What Is Putty?

Putty Commands

PuTTY is a free and open-source terminal emulator, serial console, and network file transfer application. It supports several network protocols, including SSH (Secure Shell), Telnet, rlogin, and raw socket connection. PuTTY is widely used on Windows systems to connect to Unix/Linux servers and network devices.

Some key features of PuTTY include:

Putty Commands
  1. SSH, Telnet, and Serial Connections: PuTTY is primarily known for its ability to establish secure SSH connections to remote servers, but it also supports traditional Telnet and serial connections.
  2. Terminal Emulation: PuTTY provides a terminal interface that allows users to interact with the command-line interface of remote servers. It supports various terminal emulation types, including xterm, VT100, and ANSI.
  3. File Transfer: PuTTY includes tools like PSCP (PuTTY Secure Copy Protocol) and PSFTP (PuTTY Secure File Transfer Protocol) for secure file transfers between a local and remote system.
  4. Port Forwarding: PuTTY supports port forwarding, allowing users to create secure tunnels for forwarding specific ports between the local and remote machines.
  5. Session Management: PuTTY allows users to save session configurations for quick and easy access to frequently used connections. This can include settings such as the host name, port, and protocol.
  6. Configurability: Users can customize PuTTY’s appearance and behavior through various settings, making it adaptable to different preferences and use cases.

PuTTY is lightweight, easy to use, and widely adopted in the IT community, especially among system administrators and network engineers. While it is commonly associated with Windows, there are also variations and ports available for other operating systems, such as PuTTY for Linux and PuTTY for macOS.

Why we are using Putty commands

PuTTY commands, or rather the Putty Commands used within the PuTTY terminal interface, are essential for interacting with remote servers and network devices. PuTTY provides a text-based terminal emulation that allows you to communicate with the command-line interface (CLI) of remote systems. Here are some common reasons why PuTTY commands are used:

  1. Remote Server Access: Putty Commands allows users to connect to remote servers securely using protocols like SSH. Once connected, you can interact with the remote server’s command line to execute commands, manage files, and configure settings.
  2. Secure Shell (SSH) Communication: PuTTY is commonly used for SSH connections, providing a secure way to access and manage remote servers. SSH encrypts the communication between the local machine and the remote server, ensuring the confidentiality and integrity of data.
  3. Network Device Configuration: Network administrators often use PuTTY to configure and manage network devices such as routers, switches, and firewalls. By connecting to these devices through the command line, administrators can make configuration changes, troubleshoot issues, and monitor network activity.
  4. Terminal Emulation: Putty Commands provides terminal emulation for different types of terminals, such as xterm, VT100, and ANSI. This ensures compatibility with a variety of remote systems, allowing users to work seamlessly with diverse command-line environments.
  5. File Transfer: PuTTY includes tools like PSCP (PuTTY Secure Copy Protocol) and PSFTP (PuTTY Secure File Transfer Protocol) for secure file transfers between the local and remote systems. This is useful for copying files to and from remote servers.
  6. Port Forwarding: PuTTY supports port forwarding, allowing users to create secure tunnels for forwarding specific ports between the local and remote machines. This can be useful for accessing services that are running on a remote server but are not directly accessible from the local machine.
  7. Session Management: PuTTY allows users to save session configurations, including host names, port numbers, and connection protocols. This makes it easy to reconnect to frequently used servers without having to re-enter connection details each time.

30 Useful Putty Commands and there uses:

  1. pwd
    • Definition: Print working directory.
  2. ls
    • Definition: List files and directories.
  3. cd
    • Definition: Change directory.
  4. cp
    • Definition: Copy files or directories.
  5. mv
    • Definition: Move or rename files and directories.
  6. rm
    • Definition: Remove or delete files.
  7. mkdir
    • Definition: Create a new directory.
  8. rmdir
    • Definition: Remove an empty directory.
  9. touch
    • Definition: Create an empty file or update file timestamps.
  10. cat
    • Definition: Display the contents of a file.
  11. less
    • Definition: View file contents one screen at a time.
  12. nano
    • Definition: A simple text editor.
  13. vim
    • Definition: A more advanced text editor.
  14. grep
    • Definition: Search for a pattern in files.
  15. find
    • Definition: Search for files in a directory hierarchy.
  16. chmod
    • Definition: Change file permissions.
  17. chown
    • Definition: Change file owner and group.
  18. ps
    • Definition: Display information about processes.
  19. kill
    • Definition: Terminate a process.
  20. top
    • Definition: Display and update sorted information about system resources.
  21. df
    • Definition: Display disk space usage.
  22. du
    • Definition: Estimate file space usage.
  23. uname
    • Definition: Print system information.
  24. free
    • Definition: Display amount of free and used memory.
  25. tail
    • Definition: Display the last lines of a file.
  26. sort
    • Definition: Sort lines of text files.
  27. passwd
    • Definition: Change user password.
  28. sudo
    • Definition: Execute a command as the superuser.
  29. useradd
    • Definition: Create a new user account.
  30. userdel
    • Definition: Delete a user account.