Linux Cheatsheets - hewigovens/hewigovens.github.com GitHub Wiki
##tmux
Cmd Action
c Create a new window
n Change to next window
p Change to previous window
" Split pane horizontally
% Split pane vertically
, Rename current window
o Move to next pane
##tr
tr takes 2 parameters, the first one is a set of characters that it should translate,
the second the set of characters that will act as a replacement.
So the arguments abc 123 would mean that a gets replaced by 1, b with 2 and so on.
##split/cat
#split
split -b 75m input.zip
#merge
cat `ls x*` > reassembled.zip
#check
ls *.zip | xargs md5
MD5 (input.zip) = d760b448595f844b1162eaa3c04f83d8
MD5 (reassembled.zip) = d760b448595f844b1162eaa3c04f83d8
##Uptime
#system upteim
uptime
#current shell uptime
echo $SECONDS
##Default editor
#emacs key bindings
Ctrl-x Ctrl-e
##Network status
netstat -an
lsof -i
curl ifconfig.me
##man
#ASCII code
man ascii
#man [number] entry
man 7 gitcore-tutorial
##Last commands
#last execute command
!$
#Show latest command arguments
Alt+.
#Replace last command
#E.g. !$=sudo launchctl unload /Library/LaunchDaemons/org.goagent.local.plist
^unload^load
##Top, sort by mem or cpu
top
#press Shift+m -> sort by mem usage
#press Shift+p -> sort by cpu usage
#press Shift+w -> save current settings to ~/.toprc
##Ubuntu wireless device not managed
sudo vim /etc/NetworkManager/NetworkManager.conf
#change to :
[ifupdown]
managed=true
sudo /etc/init.d/network-manager restart
##apt-get/dpkg
Problem: When attempting to run apt-get, you get an error reading "E: Unable to determine a suitable packaging system type".
Cause: DPKG is not installed.
Solution: Visit the debian package site, and download+extract the dpkg package.
Problem: When attempting to do any command (update, install, remove, etc.) with apt-get, you get an error saying "Cannot open file /var/lib/dpkg/status - open ... basicall saying that it cannot find the file named "status".
Cause: We simply have not install DPKG all of the way.
Solution: No worries, this is an easy solution. Simply navigate to /var/lib/dpkg, and create a blank file named "status".
##Unity ShortCuts
- Control-Super-D ==> show desktop
- Ctrl+Alt+Arrow ==> change workspace
- Alt+F2 ==> Run command
- Super + S ==> show all workspace
- hold super ==> show all shortcuts
##Linux Launcher
- Gnome-Do
- Kupfer
- Synapase
##Basic Compress/Decompress