To list all the files installed by a certain Debian package, use this command. dpkg -L [PACKAGENAME]. For example. ubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj /usr/share/bug/vim/script /usr/share/doc /usr/share/doc/vimubuntu ~ $ dpkg -L vim /. /usr /usr/bin /usr/bin/vim.basic /usr/share /usr/share/lintian /usr/share/lintian/overrides /usr/share/lintian/overrides/vim /usr/share/bug /usr/share/bug/vim /usr/share/bug/vim/presubj …

The grep command on Linux is very good for filtering text to find certain strings. This is mostly used for filtering the output of a command to narrow down what the user is looking for. Find all instances of a word in a text file. [email protected]:/usr/share/X11$ grep "dark" rgb.txt 47 79 79 dark slate gray …

Convert a Linux text file to DOS format with AWK. [[email protected]:~] cat dodo-ip.txt | awk ‘{sub(/$/,"\r")};1’ > dodo2.txt[[email protected]:~] cat dodo-ip.txt | awk ‘{sub(/$/,"\r")};1’ > dodo2.txt Convert a DOS text file to UNIX format. [[email protected]:~] cat dodo2.txt | awk ‘{sub(/\r$/,"")};1’ > dodo3.txt[[email protected]:~] cat dodo2.txt | awk ‘{sub(/\r$/,"")};1’ > dodo3.txt Get your Internet facing IP address from …

Hacking is something that a lot of us think in a negative way, but the truth of the matter is, there are a lot of positives that can come out of it as well. In this article, we’re going to take a look at 10 cool tricks that you can use if you’re thinking about …

There are many useful Linux tips that make the life of a Linux user much easier. One is for the VI or VIM editor. To open a file at a specific line; use this command. [email protected] ~/Documents/yadex-1.7.901 $ vim src/x11.h [email protected] ~/Documents/yadex-1.7.901 $ vim src/x11.h +33 This will open the file x11.h at line 33. …

This is how to connect to a machine with an SSH server installed and download a file from that machine to your local computer. The sftp command allows this to be accomplished with ease. [email protected] ~ $ sftp -P 443 [email protected]:/home/homer/Documents/my2.c LMDE MATE [email protected]’s password: Connected to 192.168.100.8. Fetching /home/homer/Documents/my2.c to my2.c [email protected] ~ $ …

Change the mac address of your network adapter. sudo ifconfig wlan0 down && sudo ifconfig wlan0 hw ether 00:11:22:33:44:55 && sudo ifconfig wlan0 up This will change the mac address of your network interface instantly. Below is an example. [email protected] ~ $ sudo ifconfig eth0 down && sudo ifconfig eth0 hw ether 00:11:22:33:44:55 && sudo …

The boxes utility for Linux allows you to render an ascii text box around text. Below is an example. [email protected] 19:14:21 ~ $ echo `echo "This is a sentence printed to the terminal."` | boxes /***********************************************/ /* This is a sentence printed to the terminal. */ [email protected]30 19:14:21 ~ $ echo `echo "This is a …

This sed trick will filter out the unwanted characters and leave only the letters ‘A’. [email protected] ~ $ echo "###AAA" | sed ‘s/###//gi’ [email protected] ~ $ echo "###AAA" | sed ‘s/###//gi’ AAA This is how to re-bind the annoying CAPS-Lock key to Esc. This can give that key a new use. xmodmap -e ‘clear Lock’ …

Some very useful Linux shell commands and tricks. Print numbers in sequence. [[email protected] ~]$ seq 8 24 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24[[email protected] ~]$ seq 8 24 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 …

This Linux command will copy the text file given, “myfile.txt” and send it to the sprunge.us website. This allows you to share a text file with others without too much fuss. curl -F ‘sprunge=<myfile.txt’ http://sprunge.uscurl -F ‘sprunge=<myfile.txt’ http://sprunge.us You may also install the PastebinCL utility on Fedora 19, this allows you to upload text to …

How to expand a VDI disk image on a Macintosh computer: http://mithunme.wordpress.com/2013/07/08/how-to-increase-the-disk-size-of-a-ubuntu-vdi-on-mac/. This would also be applicable to a Linux machine. A very useful tip. How to add a standard user to the /etc/sudoers file on a Macintosh computer: http://mithunme.wordpress.com/2013/02/10/adding-a-standard-user-to-etcsudoers-in-mac-os-x/. This is also applicable to a Linux machine. How to install World Of Warcraft on …

How to take a screenshot on Macintosh OSX: http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X. To delete your Internet history quickly in Firefox; use the Ctrl-Shift-Del keyboard combination. You will be presented with a dialog that allows you to select the time period to erase. Watch the original Star Wars movie in ASCII with this awesome website: http://asciimation.co.nz/. How to monitor …

This is how to remove all text from the output of a file and only keep the other formatting. [email protected] ~/Desktop/b $ fortune -l | sed s/[a-z]/\ /gi; : 3:15 . . – . , ! — ’84 A possibly useless but interesting use of sed. Here I am removing only the numbers from text …

This command shows how to display a listing of files with ls and show line numbers at the same time. [email protected] ~/Desktop/Site % ls | nl 1 back.jpg 2 bejiitas_phpb1 3 bejiitas_phpb1.sql 4 cgi-bin 5 Files.tar.lzma 6 Map07Tufb.zip 7 my2.tar.lzma 8 program.c 9 quake38.jpg 10 sysinfo 11 tekcrazy_2.zip 12 wrap.rar if you wish to not …