Run the last command as root |
|
Serve current directory tree at http://$HOSTNAME:8000/ |
python -m SimpleHTTPServer
|
Runs previous command but replacing |
|
|
|
|
|
Rapidly invoke an editor to write a long command |
|
Place the argument of the most recent command on the shell |
|
Salvage a borked terminal |
|
List currently mounted filesystems in nice layout |
|
Get your external IP address |
|
Execute a command at a given time |
echo "ls -l" | at midnight
|
Output your microphone to a remote computer's speaker |
dd if=/dev/dsp | ssh -c arcfour -C username@host dd of=/dev/dsp
|
Type partial command, check something, resume typing |
|
|
|
|
[ctrl+y] vi /etc/ssh/ssh_config
|
Mount folder/filesystem through SSH |
sshfs name@server:/path/to/folder /path/to/mount/point
|
Mount a temporary ram partition |
mount -t tmpfs tmpfs /mnt -o size=1024m
|
Download an entire website |
|
Clear the terminal screen |
|
Compare a remote file with a local file |
ssh user@host cat /path/to/remotefile | diff /path/to/localfile -
|
Update twitter via curl |
|
SSH connection through host in the middle |
ssh -t reachable_host ssh unreachable_host
|
Close shell keeping all subprocess running |
|
Make 'less' behave like 'tail -f' |
|
Put a console clock in top right corner |
while sleep 1;do tput sc;tput cup 0 $(($(tput cols)-29));date;tput rc;done &
|
Shutdown a Windows machine from Linux |
net rpc shutdown -I ipAddressOfWindowsPC -U username%password
|
List of commands you use most often |
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
|
32 bits or 64 bits? |
|
Set audible alarm when an IP address comes online |
|
Reboot machine when everything is hanging |
<alt> + <print screen/sys rq> + <R> - <S> - <E> - <I> - <U> - <B>
|
Simulate typing |
echo "You can simulate on-screen typing just like in the movies" | pv -qL 10
|
Quickly rename a file |
|
Escape any command aliases |
|
Delete all files in a folder that don't match a certain file extension |
|
Created By
https://tme520.com
Metadata
Favourited By
Comments
No comments yet. Add yours below!
Add a Comment
Related Cheat Sheets
More Cheat Sheets by TME520