UP TO 80% DISCOUNT ON AMAZON LIMITED TIME ...

Sunday, 2 August 2015

Linux Terminal Commands-4

Linux Terminal Commands-4


SSH commands:

DescriptionShortcut key
Connect to host as userssh user@host
Connect to host on port port as userssh -p port user@host
Add your key to host for user to enable a keyed or passwordless loginssh-copy-id user@host

User Administration commands:

DescriptionShortcut key
Create a new user call accountnameadduser accountname
Give accountname a new passwordpasswd accountname
Log in as superuser from current loginsu
Stop being superuser and revert to normal userexit

Process Management commands:

DescriptionShortcut key
Display your currently active processesps
Display all running processestop
Kill process id pidkill pid
Kill all processes named proc (use with extreme caution)killall proc
Lists stopped or background jobs; resume a stopped job in the backgroundbg
Brings the most recent job to foregroundfg
Brings job n to the foregroundfg n

Stopping & Starting commands:


DescriptionShortcut key
Shutdown the system now and do not rebootshutdown -h now
Stop all processes - same as abovehalt
Shutdown the system in 5 minutes and rebootshutdown -r 5
Shutdown the system now and rebootshutdown -r now
Stop all processes and then reboot - same as abovereboot
Start the X systemstartx

No comments:

Post a Comment