Ubuntu/Commands
From r00tedvw.com wiki
(Difference between revisions)
(→apt-get) |
|||
Line 19: | Line 19: | ||
search apt-cache search keyword | search apt-cache search keyword | ||
apt-get install 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 |
Revision as of 05:37, 13 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