| Description | Shortcut key |
|---|---|
| Connect to host as user | ssh user@host |
| Connect to host on port port as user | ssh -p port user@host |
| Add your key to host for user to enable a keyed or passwordless login | ssh-copy-id user@host |
| Description | Shortcut key |
|---|---|
| Create a new user call accountname | adduser accountname |
| Give accountname a new password | passwd accountname |
| Log in as superuser from current login | su |
| Stop being superuser and revert to normal user | exit |
| Description | Shortcut key |
|---|---|
| Display your currently active processes | ps |
| Display all running processes | top |
| Kill process id pid | kill pid |
| Kill all processes named proc (use with extreme caution) | killall proc |
| Lists stopped or background jobs; resume a stopped job in the background | bg |
| Brings the most recent job to foreground | fg |
| Brings job n to the foreground | fg n |
| Description | Shortcut key |
|---|---|
| Shutdown the system now and do not reboot | shutdown -h now |
| Stop all processes - same as above | halt |
| Shutdown the system in 5 minutes and reboot | shutdown -r 5 |
| Shutdown the system now and reboot | shutdown -r now |
| Stop all processes and then reboot - same as above | reboot |
| Start the X system | startx |
No comments:
Post a Comment