Ubuntu/Commands
From r00tedvw.com wiki
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