Ubuntu/Commands
From r00tedvw.com wiki
(Difference between revisions)
(→send process to background) |
|||
Line 11: | Line 11: | ||
i.e. sudo unlink helpdesk | i.e. sudo unlink helpdesk | ||
===send process to background=== | ===send process to background=== | ||
− | send command to background process, add & at the end of the command | + | *send command to background process, add & at the end of the command |
− | CRTL+Z pauses a process | + | *CRTL+Z pauses a process |
− | bg sends paused process to background | + | *bg sends paused process to background |
− | jobs shows processes running in the background | + | *jobs shows processes running in the background |
− | fg brings it back to the foreground | + | *fg brings it back to the foreground |
Revision as of 01:07, 19 July 2013
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