Linux algemeen & CLI
Linux general
rsync root volume to new harddisk enable wifi after suspend-resume edit PDF metadata ch...
Image manipulation (The Gimp, DigiKam)
How to make a portion of an image transparent using The Gimp Sometimes you want to make ...
Linux and hardware
test harddisk for bad blocks set cpu performance determine which vga driver is in use r...
Watch
Herrie http://www.herrie.info commandline mp3 player/jukebox Thunder & Lightning 3D war...
How to find duplicate files BY CONTENT!!
Today in IRC suseROCKS needed to find all duplicate files in a directory by their conten...
How to clone or copy your harddisk over the network
Method 1 (tested!) On the bron/zender/source: #dd if=/dev/sda | gzip -c | netcat -l -q 0...
How to find information about a host or webserver
nmap -sV -P0 -O [server]
Linux commandline tips
Bash tips ^r Reverse search the command history ^a Return to the start of the comm...
Using x2x to connect two computers and their screens with one mouse and keyboard
Let's say you have 2 computers: cpu1: 10.0.0.1 cpu2: 10.0.0.2 Let's say cpu1's screen is...
Script to check and restart a process
#!/bin/bash # -------------------------------------------------------------------------...
Vi tips
vi editor tips Keys Key(s): Movement: 0 (zero) 1st column on the line ^ 1st non-b...
Verhuis een linux systeem naar nieuwe hardware
Verhuis van systeem A naar systeem B. Inpakken boot systeem A vanaf liveCD (alterna...
A guide to using systemd
This is how to stop a running service temporarily: systemctl stop servicename.service Se...
Perform bechmarks on the filesystem
To test the speed of the filesystem (not the physical disk!) you can use the following ...
How to backup your disk with dd
I had several bad experiences losing my data in my life. Sometimes because of the hardwa...
Things to clean up before doing large copy of entire system
FF cache chromium cache .thumbnails spotify localstorecache .wine /var/tmp/kdecache-pvdm
Linux commandline tips 4
trap ctrl-c in terminal: trap 'play -nq synth sin 1000 trim 0 0.35 vol 0.5 2>/dev/null'...
Linux algemeen
fuser -ck /net pid of proccess holding mount openssl x509 -noout -in scx-host-sldbowzs...
Awk
awk pattern {action} pattern {action} $ awk '{print $2}' /etc/fstab to filter out commen...
Systemd journal log file setting
The new openSUSE 13.2 journald (from systemd) is sometimes quickly using up disk space. ...
Dealing with spaces in filenames
BASH for loop works nicely under UNIX / Linux / Windows and OS X while working on set of...
View progress of dd
In Linux, find running dd processes and send them a signal to print out their progress. ...
Sort installed rpms by size
Sort installed RPMs by size To list all RPM packages installed on a Linux machine sorted...
Command line tips
Show all VMs: vboxmanage list -l vms Show the state of the VM: vboxmanage showvminfo w7n...
Find
find latest files in all subdirectories per directory
Find latest files in all subdirectories per directory
Create a file latestfile.sh: #!/bin/bash ls -lrt "$1" | tail -n1 Make it executable ch...
Journald
output since booting: journalctl -b Follow: journalctl -f Keep an eye on sshd service: j...
Sample commands
testdatabase 'testsietske'; > mysql -u root MariaDB [testsietske]> use testsietske; Ma...
Bash fun
pong: yes $COLUMNS $LINES|awk 'BEGIN{x=y=e=f=1}{if(x==$1||!x){e*=-1};if(y==$2||!y){f*=-1...
OCR
scan pdf to file. first extract the pages and ocr them, then make one doc pdfimages -tif...
How to get into bios-setup
BIOS: when keyboardlight comes on, press and hold F2
Ace
@tecra:~> acestreamengine --client-console @tecra:~> acestream-launcher -p vlc acestream...
.vimrc
To support the creation and editing of yaml files in vi, set the following in ~/.vimrc s...
Tips and tricks
Probably the best way to do this - assuming that you can't use the NOPASSWD solution pro...
Performance harddisk
orginele harddisk /dev/sda: Model=TOSHIBA THNSNK128GVN8, FwRev=K8TA4101, SerialNo=17CS...
Bash pitfalls
Bash Pitfalls This page shows common errors that Bash programmers make. These examples a...
File permissions
File permissions One of the important things you can do to help secure your MediaWiki in...
Disable cpu core for light work
# echo 0 | sudo tee /sys/bus/cpu/devices/cpu$COREID/online # Disable a CPU core to save ...
Rescan SCSI bus
# echo "0 0 0" > /sys/class/scsi_host/host5/scan 5 is changeable; it is the connection
How to send email from command line in fixed font
To send email that is in fixed font you can use: # (echo "Subject: bla"; echo "MIME-Ver...
Rsync root volume
# rsync -aAXv --exclude 'data' --exclude 'mnt' --exclude 'proc' --exclude 'sys' --exclud...
Edit PDF metadata
View PDF metadata: # exiftool file.pdf View specific metadata: # exiftool -Creator file....
Rsync root volume to new harddisk
# rsync -aAXvx --progress --exclude='.snapshots/' / [mountpoint of new harddisk]
Exiftool
To fix the date time on the pixel 6a photo and video files, use for photos: # exiftool '...
Lsmod
lsmod Module Size Used by fuse 106496 1 tcp_diag ...
Lspci
lspci 00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Family 15h (Models 10h-1fh...
Linux commandline tips 2
Command • apropos whatis • man -t man | ps2pdf - > man.pdf which comma...
Linux commandline tips 3
Download a file and uncompress it while it downloads $wget http://URL/FILE.tar.gz -O -...