Computer Hope

  • sudo eopkg it -c system.devel
  • mkdir build && cd build
  • wget http://kent.dl.sourceforge.net/project/safecopy/safecopy/safecopy-1.7/safecopy-1.7.tar.gz && tar zxvf safecopy-1.7.tar.gz
  • cd safecopy && ./configure --prefix=/usr
  • make -j44 && sudo make install
  • safecopy help

found this neat utility the other day
here is how to clone and mount the result images

sudo apt-get update && sudo apt-get install safecopy sudo safecopy --stage1 /dev/source /media/mount/dest.img

(if all data was copied then skip stage2 and stage3, if not proceed to stage2)

sudo safecopy --stage2 /dev/source /media/mount/dest.img sudo safecopy --stage3 /dev/source /media/mount/dest.img

list image information file dest.img

i realy like Foobar2000 but it is not available on linux, but fear not there is a pretty clone of it on linux named DeaDBeeF :)

http://deadbeef.sourceforge.net/

made this list of my most used linux commands

Arch Packages

Install = pacman -S
Search = pacman -Ss
Remove = pacman -R
Build tools = pacman -S base-devel

Ubuntu packages

Install apt-get
Search apt-cache search
Remove apt-get
Build tools = apt-get install build-essentials autoconf automake make

Raspbian

configure raspberry rasp-config
update firmware rpi-update

Screen

screen a program screen program
reattach screen -r
deatach run in background screen -d
uart console screen /dev/ttyUSB0 115200

Network

Wireless Config (arch) wifi-menu
Network Info ifconfig
dhcp renew dhclient -r eth0
find the software that runs on port ipv4 lsof -Pnl +M -i4
find the software that runs on port ipv6 lsof -Pnl +M -i6

Storage

search for file find / -iname something
show space usage df -h
show partitions parted -l
mount drive mount /dev/sda /mnt/folder
unmount a folder umount /mnt/folder
unmount dead folder umount -l /mnt/deadmount
list files by date ls -lrth
list files by size du -hs | sort
list files in sub folders and folder size ls -lh *
list files & folders after size in current folder du -hc * | sort -h
list files & folder after size in / du -hc / | sort -h
list files & folders after size and exclude a folder du -hc / --exclude='/mnt/*' | sort -h
Clone harddrive or partition dd if=/dev/source of=/dev/destination bs=4M

compress & decompress

untar a file tar xf <file>
untar a tar.gz file tar zxvf <file>
untar a tar.bz2 file tar xvjf <file>
unbz2 a bz2 file bunzip2 <file>
unrar a file unrar <file>
unzip a file unzip <file>
un7z a file 7za e <file>
unxz

Language

set keyboard language setxkbmap no

System info

show process usage top
show disk activity iotop
show network activity nethogs

got more?, comment please
FYI, you might need to install some of them

Easily deploy an SSD cloud server on @DigitalOcean in 55 seconds. Sign up using my link and receive $10 in credit
Proudly published with Ghost | Theme based on Draugur | Header Image by GUWEIZ@DeviantArt
Creative Commons Licence