Linux commands to find out hardware information.

Linux hardware information commands. There are many commands available for Linux that allow the user to get information about their hardware. Here is a handful of them. The lshw command is very useful for getting information about your installed hardware. ubuntu ~ $ sudo lshw -short H/W path Device Class Description ============================================================================================================================================== system HVM domU … Read more

Another look at the WIFI Radar application for Linux. A good tool for a wireless site survey.

The WIFI Radar application for Linux is used to perform a wireless site survey to determine the signal strength of a wireless network that you are deploying at a particular site. This application makes a survey of wireless signal strength very easy indeed. The SSID/MAC address of the access point is shown, as well as … Read more

How to get the MD5 sum of a file with the Linux command line and the md5sum command.

The md5sum command on Linux is used to get a number that is the checksum of the file. This is commonly used to verify downloaded files to check that the file has not been modified. Below is an example, the md5sum command is used on a BMP file and I get the file checksum output … Read more

How to use the watch command to update a terminal every 2 seconds with an updating file.

I am using this command to search the Internet for open ports on port 80 with nmap. sudo nmap -sS -iR 0 -p 80 -oG nmap.grepablesudo nmap -sS -iR 0 -p 80 -oG nmap.grepable Then I use this command in another terminal tab to view the updating file. This will be updated every two seconds … Read more

How to setup Ubuntu 13.10 with a better desktop environment. Better than Unity.

How to setup Ubuntu 13.10 with a proper desktop environment. I just installed Ubuntu 13.10 and I had to update the package repositories. This is essential to install software. homer@deusvult:~/Documents$ sudo apt-get updatehomer@deusvult:~/Documents$ sudo apt-get update After this I could install the initial set of packages to setup my system. homer@deusvult:~/Documents$ sudo apt-get install me-tv … Read more

Strange bash piping method that actually does work. And fixing hard disk partitions with fsck.

This is a strange bash piping method that actually does work. This pipes the output of one echo command and appends it to another. ubuntu ~ $ echo "Hello World" >| echo "Me" > out.txtubuntu ~ $ echo "Hello World" >| echo "Me" > out.txt This is the result of this strange command. ubuntu ~ … Read more

A useful bash shell script that will only run a command as the root user.

This is a shell script that will only run if the user executes it as the root user. I got this tip here: http://www.cyberciti.biz/tips/shell-root-user-check-script.html. #!/bin/bash     CMDROOT="yum update"   if [[ $EUID -ne 0 ]]; then echo echo "You must be a root user to run this command." 2>&1 exit 1 else echo echo … Read more

How to easily create a bash shell prompt for your personal use using a website interface.

The bash $PS1 generator here: http://www.kirsle.net/wizards/ps1.html allows you to create a cool bash shell prompt with a minimum of fuss. You can add colors to various parts of the prompt and make it look very nice indeed. Check it out now and see what you think. Here is one that I made. This uses tput … Read more

Some commands that you should never run in Linux ever!

This is one command that you should never run on Linux. $(echo 726d202d7266202a | xxd -r -p)$(echo 726d202d7266202a | xxd -r -p) This is the text string “rm -rf *”” that is converted to hexadecimal and then put into this command. This will erase all of your files if you run this in your home … Read more

Some very useful online Linux resources.

http://www.scribd.com/doc/12918020/Linux-Starter-Pack; The Linux starter pack. This is very good as an introduction to the Linux desktop and the various utilities available. http://tille.garrels.be/training/bash/; Introduction to Linux guide for beginners. This is a good resource if you want to learn more about the Linux shell and usage in general. http://securitron.securitronlinux.com/lc/rute/; Rute User’s Tutorial and Exposition. The definitive … Read more

Some very good Gnome Shell themes for Ubuntu and Linux Mint 15.

http://gnome-look.org/content/show.php/GNOME+Shell%3A+Nord?content=142971. Nord Gnome Shell theme, now compatible with Gnome 3.6. http://gnome-look.org/content/show.php/LittleBigMod_2nd?content=152088. LittleBigMod Gnome Shell 3.6 theme. A very good and sleek theme. http://gnome-look.org/content/show.php/London+Smoke+-+Gnome-Shell?content=142426. London Smoke theme for Gnome Shell 3.4. http://gnome-look.org/content/show.php/malys+-++GS?content=142262. Malys theme for Gnome Shell 3.4.1. Another quality theme for your Linux desktop. http://gnome-look.org/content/show.php/Darkair+%28+3.4%2B3.6%2B3.8%2B3.9.2%29?content=156215. Darkair Gnome Shell theme. A theme with a lovely orange … Read more

More awesome shell tricks for the Linux command line. This is using the bash shell.

This is another way to see where you are in the directory stack. homer@deep-thought ~/Documents/basenew $ echo $DIRSTACK ~/Documents/basenewhomer@deep-thought ~/Documents/basenew $ echo $DIRSTACK ~/Documents/basenew Here is another way to show the $PWD value one directory down from where you are now. homer@deep-thought ~/Documents/basenew $ echo $OLDPWD /home/homer/Documentshomer@deep-thought ~/Documents/basenew $ echo $OLDPWD /home/homer/Documents This example shows … Read more

How to watch a file in a terminal and see changes right away. Good for logfiles.

Here I am using the watch ‘tail access.log’ command to watch the access log file for the Apache web server. This will update every two seconds and show changes to the logfile when someone accesses the server. Every 2.0s: tail access.log Tue Jul 2 10:26:04 2013   77.78.106.75 – – [30/Jun/2013:18:03:09 +1000] "HEAD / HTTP/1.0" … Read more

How to filter text with the sed command. This is useful for various shell tricks.

Using wildcards on the Linux command line This is a standard listing of files with wildcards in the bash shell. homer@deep-thought ~/Documents $ ls *.wad basenew.wad cc4-tex.wad city-heat.wad dark.wad doom.wad plutonia.wad scythe2.wad SKYTEST.wad brick.wad cchest4.wad consoleCopy.wad doom2.wad hexen.wad RIII.wad scythex.wad SODfinal.wadhomer@deep-thought ~/Documents $ ls *.wad basenew.wad cc4-tex.wad city-heat.wad dark.wad doom.wad plutonia.wad scythe2.wad SKYTEST.wad brick.wad cchest4.wad … Read more

Gnome Shell versus Unity on Linux Mint 15. What I think about the two competing desktops.

The Gnome Shell desktop on Linux Mint 15 is a pretty good desktop environment for any Linux user, but after typing sudo apt-get install unity on Linux Mint 15 and trying it out, I actually think that the Unity desktop is the faster of the two. Despite the Macintosh styled interface. The ability to quickly … Read more

TRON Legacy GDM theme. A nice addition to any Linux computer.

TRON Legacy GDM theme: http://gnome-look.org/content/show.php?content=117133. This will also work with MDM in Linux Mint 15. TRON Legacy Gnome Shell theme: http://half-left.deviantart.com/art/GNOME-Shell-Tron-Legacy-208220836. This theme is very reminiscent of the theme that the computer uses in the movie. You need to install the User Themes extension to load this theme. TRON Legacy lightcycle wallpaper: http://www.moviedeskback.com/wp-content/uploads/2010/07/Tron-Legacy-Wallpapers-1600×1200-6.jpg. Die Hard … Read more