The printerbanner command will create a dot matrix printer banner. Just run the command and then type a string and hit ENTER. jason@debian:~$ printerbanner Message: Debianjason@debian:~$ printerbanner Message: Debian Print out the contents of a text file in octal format. jason@debian:~$ od .dmrc 0000000 042133 071545 072153 070157 005135 060514 063556 060565 0000020 062547 062475 …

Fetch information about a random Linux command. curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ Here is an example. ┌─[jason@neo]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed ‘3,4!d’ # An easter egg built into python to give you the Zen of Python echo "import this" | python┌─[jason@neo]─[~] └──╼ $curl -sL commandlinefu.com/commands/random/plaintext | sed …

Linux commands cheat sheet. With this list of basic Linux commands and sample usages, you’ll never have to worry about forgotten commands again. The items contained within brackets are optional, and type man at a shell for more information.

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

This is a good example of a command not to run on a Linux machine. This is commonly posted as a troll. sudo $(echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p)sudo $(echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p) And this is what it actually does. jason@ubuntu:~$ echo "64642069663d2f6465762f7a65726f206f663d2f6465762f73646120636f756e743d3130302062733d314d0a" | xxd -r -p dd if=/dev/zero of=/dev/sda count=100 bs=1Mjason@ubuntu:~$ echo …

While running Linux, if you want to list the contents of a folder in a vertical list format, just use the ls command with these switches. jason@ubuntu:~$ ls -luh –color=yes total 48K drwxr-xr-x 2 jason jason 4.0K Dec 15 03:03 Desktop drwxr-xr-x 2 jason jason 4.0K Nov 29 17:00 Documents drwxr-xr-x 2 jason jason 4.0K …

The logsave command will print the output of a command to a file. This will also add a timestamp to the logfile telling the system administrator when the command was run. logsave /var/log/partsize df –hlogsave /var/log/partsize df –h This is an example, the output of the command is also printed to STDOUT. jason@ubuntu:~$ logsave partsize …

To open the Firefox developer tools, press Ctrl-Shift-K. This is good if you have Firebug installed, as F12 will open it instead. To take a full-page screenshot of a web site, press Shift-F2 and then type this command and hit press ENTER. screenshot –fullpagescreenshot –fullpage This will be saved in the ~/Downloads folder by default. …

To reboot your Linux machine, use the sudo reboot command. Another way is to type sudo shutdown -r now. To lookup the IP address of a host, use the nslookup command. For example: nslookup google.com. ubuntu@ip-172-31-20-234 ~ % nslookup google.com Server: 172.31.0.2 Address: 172.31.0.2#53   Non-authoritative answer: Name: google.com Address: 74.125.237.193 Name: google.com Address: 74.125.237.194 …

This is the best tutorial I have found that allowed me to install FreePBX on an Ubuntu 14.04 instance on an Amazon AWS instance. I tried a few and this one really did work for me after following all of the steps and exercising patience. http://wiki.freepbx.org/display/HTGS/Installing+FreePBX+12+on+Ubuntu+Server+14.04+LTS. FreePBX is a very useful tool for setting up …

This simple command allows the user to print the contents of a variable. homer@deusexmachina:~ % echo "$LOGNAME" homerhomer@deusexmachina:~ % echo "$LOGNAME" homer Use the netstat command to get information about all network connections to and from your machine. homer@deusexmachina:~ % netstat Active Internet connections Proto Recv-Q Send-Q Local Address Foreign Address (state) tcp4 0 0 …

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. homer@deusexmachina ~ $ sudo ifconfig eth0 down && sudo ifconfig eth0 hw ether 00:11:22:33:44:55 && sudo …

The route PRINT command shows the routing table. This gives some insight into your network connections. C:\Users\Administrator>route PRINT =========================================================================== Interface List 18…1e 0f 6e 5d e1 25 ……Microsoft Wi-Fi Direct Virtual Adapter 13…4c 0f 6e 5d e1 25 ……Qualcomm Atheros AR5B97 Wireless Network Adapter 12…88 ae 1d 6d 09 bc ……Broadcom NetLink (TM) Gigabit Ethernet …

This command lists the information about your user. C:\Users\homer>net user Administrator User name Administrator Full Name Comment Built-in account for administering the computer/domain User’s comment Country code 000 (System Default) Account active No Account expires Never Password last set 11/2/2006 11:08:15 PM Password expires Never Password changeable 11/2/2006 11:08:15 PM Password required Yes User may …

The mount command shows information about your mounted partitions on your machine. iMac305:~ admin$ mount /dev/disk0s2 on / (hfs, local, journaled) devfs on /dev (devfs, local, nobrowse) map -hosts on /net (autofs, nosuid, automounted, nobrowse) map auto_home on /home (autofs, automounted, nobrowse) map -fstab on /Network/Servers (autofs, automounted, nobrowse) /dev/disk0s3 on /Volumes/Scratch (hfs, local, journaled)iMac305:~ …