Linux - How to Find the Hostname

Finding the hostname in Linux is very simple and basic. The method is the same, regardless of your Linux distribution (Ubuntu, openSUSE, Fedora...) Here are 2 ways to find the hostname:

Run the command "hostname":


Read the contents of "/etc/hostname":

cat /etc/hostname

Linux - How to Find Kernel Version from Terminal

To find out the Linux kernel version in use on a Linux system (should work on any Linux distribution, including Ubuntu, openSUSE, Fedora, or whatever), just run the following command:

uname -r

uname -r

Ubuntu - How to View or Show Hidden Files in Nautilus or Terminal - Linux

By default, Ubuntu hides hidden files and folders. If you want to view them, you can do it from the file browser Nautilus or from the command line terminal. Here is how:

File Browser Nautilus:

While you have the file browser open, just hit "Ctrl + h". That will allow you to view the hidden files and folders.


The "ls" command will only display files and directories that aren't hidden unless you supply the -a switch. "ls -a" will show you all files and directories, including hidden ones.

Linux - Find OS Version in Ubuntu and openSUSE from Command Line Terminal

To find the operating system version number and name from the terminal in Ubuntu and openSUSE (should work in other Linux operating systems as well, but may need to install the package), you need to run the lsb_release command. Here are a few examples:


lsb_release -a
Distributor ID: Ubuntu
Description: Ubuntu 12.04 LTS
Release: 12.04
Codename: precise
lsb_release -r
Release: 12.04


Linux - How to Use LogMeIn Rescue Remote Support Technician Console in Ubuntu

Since LogMeIn Rescue  only officially supports Windows, many of you Linux users who would like to provide remote support to Windows and Mac users from a Linux system may be disappointed. However, since LogMeIn Rescue is web-based, you can actually use the fully functional LogMeIn Rescue Technician Console from a Linux system using WINE. This tutorial was tested on Ubuntu 12.04 and 12.10 using the Windows version of Firefox 17.0.1 through WINE. It should work on any Debian based system. It has not been tested on openSUSE or Fedora, but if you install the respective packages for those distributions, this should work as well. (For those of you that aren't familiar with LogMeIn Rescue, it as a popular subscription remote support product.)

To begin, follow this step-by-step tutorial to install the Windows version of Firefox on Linux:

How to Install Windows Version of Java with WINE in Ubuntu Linux

This tutorial shows how to install the latest Windows version of the Java Runtime Environment (currently version on Ubuntu Linux using WINE. It was tested on Ubuntu 12.04 and 12.10, but should work on any Debian based system. If you need to install the Windows version of Firefox in Linux to use Java with, follow this tutorial.

To begin, download the latest Java RE offline installer here (future version should work, but this was tested with version

Now we will install wine, make the Java installer executable, and install it with WINE (this assumes the Java installer is named jre-7u10-windows-i586.exe and is located in the Downloads folder. If not, make the necessary adjustments):

sudo apt-get install wine

chmod +x ~/Downloads/jre-7u10-windows-i586.exe

wine ~/Downloads/jre-7u10-windows-i586.exe

Now the Java installer will launch:

WINE Java Install Linux 1

Click Install

Linux - Find Total and Free Disk Space from Command Line or Terminal

To find the total and free disk space in Linux operating systems such as Ubuntu and openSUSE, you need to use the df command. Here is an example:


df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/sda1       913G  481G  386G  56% /
udev            2.0G  4.0K  2.0G   1% /dev
tmpfs           807M  1.2M  805M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            2.0G  2.7M  2.0G   1% /run/shm
cgroup          2.0G     0  2.0G   0% /sys/fs/cgroup
If you run df without any switches, it will give you the same output, but in Kilobytes. If you want to learn how to find total and free disk space in Windows, check out this tutorial.

How to Configure the Citrix Receiver for Linux and Create Desktop Shortcut

After installing the Citrix Receiver for Linux (here are step by step instructions for Ubuntu and openSUSE), you may want to configure the desktop client and setup desktop shortcuts instead of using the web interface to connect. Here are instructions on how to do this:

  • After Installing, you can launch Citrix Receiver from the shortcut in the Applications menu. Click on View > Citrix XenApp View

Citrix Receiver Configure Desktop Shortcut 1

  • Enter the Server URL and click Update (This should be the same URL you would connect to the web interface with)

Citrix Receiver Configure Desktop Shortcut 2

  • Enter the Username, Password, and Domain. Check Save Password and click OK (This should be the same credentials you would enter on the web interface)

Citrix Receiver Configure Desktop Shortcut 3

mv - Move All Files Including . Hidden Files - How To for Linux Unix

By default, the mv command will not move files in the source directory that begin with . (also known as hidden files). If you want to move all files (including hidden files that begin with a dot .), run mv like this:

 mv ./{*,.*} /destination/directory/here 

 ​Below are some examples of a directory structure before and after running mv:

├── level1
│   ├── 1
│   │   ├── one.txt
│   │   └── .two.txt
│   ├── 2
│   │   ├── .four.txt
│   │   └── three.txt
│   ├── five.txt
│   └── .six.txt
└── level2

mv ./level1/* ./level2/

├── level1
│   └── .six.txt
└── level2
    ├── 1
    │   ├── one.txt
    │   └── .two.txt
    ├── 2
    │   ├── .four.txt
    │   └── three.txt
    └── five.txt

As you see ./level1/.six.txt did not move because it was in the source directory and it was a hidden file. If you were to move it the correct way, it would work and look like this:

mv ./level1/{*,.*} ./level2/

├── level1
└── level2
    ├── 1
    │   ├── one.txt
    │   └── .two.txt
    ├── 2
    │   ├── .four.txt
    │   └── three.txt
    ├── five.txt
    └── .six.txt


How to Install 200+ Free and Open Source Games in One Command on Ubuntu 12.04 - 11.10 - 11.04 -10.04

If you are looking for an easy way to install over 200 quality free and open source games in Ubuntu, this is it. I've taken the time to go through the Ubuntu Software Center and pick out some of the best games it has to offer. I tried to only include quality games (yes, I left out the glamorous xBill and Bugsx). I must warn, installing these games will download up to 8GB of data from the Ubuntu repositories and depending on your internet speed, could take over 4 hours to complete. For this reason, I recommend having a reliable internet connection before continuing. To install, run the following command for your release:

Ubuntu 12.04:


Subscribe to Linux