Category: linux

Surviving inside of gdb - Advance notions and best use 0

Surviving inside of gdb - Advance notions and best use

GDB Bootcamp Survival of the fittest Getting around To start a session : $> gdb my-super-awesome-program To start a session with arguments : $> gdb --args my-super-awesome-program --temperature hot --voltage high To run (the thing starts...

Create a symbolic link 0

Create a symbolic link

$> ln -s source newlink I've been using this command for more than 10 years and I still need to look it up to see the parameter order !

Check who is using port 80 on linux 0

Check who is using port 80 on linux

Check what application is using port 80 sudo netstat -pnlt | grep ':80'   To review what port apache is binded on : sudo netstat -pnlt | grep http    

Get the UUID of partitions in Debian 0

Get the UUID of partitions in Debian

$ ls -l /dev/disk/by-uuid/ total 0 lrwxrwxrwx 1 root root 10 Oct 16 10:27 2d781b26-0285-421a-b9d0-d4a0d3b55680 -> ../../sda1 lrwxrwxrwx 1 root root 10 Oct 16 10:27 31f8eb0d-612b-4805-835e-0e6d8b8c5591 -> ../../sda7 lrwxrwxrwx 1 root root 10 Oct...

XShm.h: No such file or directory 2

XShm.h: No such file or directory

./src/video/x11/SDL_x11dyn.h:45:33: fatal error: X11/extensions/XShm.h: No such file or directory Solution $> sudo apt-get install libxext-dev The following packages have unmet dependencies: libxext-dev : Depends: libxext6 (= 2:1.3.0-3build1) but 2:1.3.0-3ubuntu0.1 is to be installed E:...