Ubuntu/Commands
From r00tedvw.com wiki
(Difference between revisions)
Line 26: | Line 26: | ||
or | or | ||
~$sudo etherwake -D MAC-Address-Here | ~$sudo etherwake -D MAC-Address-Here | ||
+ | |||
+ | ==add user== | ||
+ | adduser [newuser] | ||
+ | ====add user to sudoer==== | ||
+ | visudo | ||
+ | root ALL=(ALL:ALL) ALL | ||
+ | newuser ALL=(ALL:ALL) ALL |
Revision as of 05:12, 22 June 2014
Contents |
SCP
scp [(username@)host:filepath] [(username@)destination:file path]
spaces within files/folders can something be resolved by adding quotes around the entire value with \\ or \ followed by a space where the space exists.
i.e. scp "[email protected]:/home/folder\\ with \\ spaces/test.text" [email protected]:/home/
ln (symlink)
create symlink
sudo ln -s source linkname i.e. sudo ln -s ../sites-available/helpdesk helpdesk
unlink symlink
sudo unlink link.name i.e. sudo unlink helpdesk
send process to background
- send command to background process, add & at the end of the command
- CRTL+Z pauses a process
- bg sends paused process to background
- jobs shows processes running in the background
- fg brings it back to the foreground
apt-get/apt-cache
search apt-cache search keyword apt-get install keyword
WOL - Wake on Lan
~$sudo apt-get install etherwake ~$sudo wakeonlan MAC-Address-Here or ~$sudo etherwake MAC-Address-Here or ~$sudo etherwake -D MAC-Address-Here
add user
adduser [newuser]
add user to sudoer
visudo
root ALL=(ALL:ALL) ALL newuser ALL=(ALL:ALL) ALL