How to check the how much disk space you have left using the command line in Linux

In the Command Line type in the following command: df -h and press enter. Results will look similar to the below. Filesystem Size Used Avail Use% Mounted on /dev/sda7 74G 36G 35G 51% / Explanation of command: df = report file system disk space usage -h = print sizes in human readable format (e.g., 1K 234M 2G)

April 7, 2018 · 1 min · 57 words · icarnaghan

How to check what Kernel and Distribution of Linux your running

How to check what Kernel and Distribution of Linux your running via the Command Line? KERNEL Type in the following command: uname -r And hit enter The command above will display the kernel version you are running eg. 2.6.28-13-generic uname = Prints System Information -r = _Prints the kernel release _ DISTRIBUTION Type in the following command: cat /etc/issue And hit enter The command above will display the kernel version that you use eg. Ubuntu 9.04 \n \l cat = Concatenates files and prints on the standard output

April 7, 2018 · 1 min · 88 words · icarnaghan

How to check what version of PostgreSQL your running

Run the following query: SELECT version(); The result will look as below: version ————————————————————————————————— PostgreSQL 8.3.7 on i486-pc-linux-gnu, compiled by GCC gcc-4.3.real (Ubuntu 4.3.3-5ubuntu4) 4.3.3 (1 row)

April 7, 2018 · 1 min · 27 words · icarnaghan

How to check which version of Java you are running on Linux

Open a new Terminal Window Type in the command java -version The output should look similar to the below: java version "1.7.0_95" OpenJDK Runtime Environment (IcedTea 2.6.4) (7u95-2.6.4-3) OpenJDK 64-Bit Server VM (build 24.95-b01, mixed mode) The above code indicates that you are running Java SDK version 7 on your server

April 7, 2018 · 1 min · 51 words · icarnaghan

How to clear the command line if you need to have a clean shell window in Linux

Type in the ‘clear’ command and hit enter. Alternatively press the key combination ‘CTRL+L’ together and it should also clear the screen.

April 7, 2018 · 1 min · 22 words · icarnaghan

How to compress a whole directory in Linux using gzip format

How to compress a whole directory in Linux using gzip format via the command line? This is a perfect way of creating backups of your files and folders or emailing filesto a friend or colleague. This could also be called a compressed archive. First this command creates the archive and then it compresses the archive. Lets put it to practice You have a directory called documents where all your important documents are stored. And you would like to archive and compress this directory for backuppurposes using GZIP. ...

April 7, 2018 · 2 min · 231 words · icarnaghan

How to configure Pidgin 2.5.5 for Google Talk

STEP 1 Open Pidgin STEP 2 Click Accounts->Manage Accounts->Add STEP 3 Add the following Protocol: XMPP Screen name: You’re Google Talk screen name without @gmail.com Server: gmail.com Password: You’re GMail password STEP 4 Click on the Advanced Tab and then add the following Connect server: talk.google.com STEP 5 Click save and it should work.

April 7, 2018 · 1 min · 54 words · icarnaghan

How to configure your Timezone/ Date on Debian based Distros

Open a new Terminal Window Type in the following command and press enter: sudo dpkg-reconfigure tzdata Select your Geographical Area and select **OK ** Select your Time zone and select **Ok ** Your new Time zone is set, type in the Date command to confirm.

April 7, 2018 · 1 min · 45 words · icarnaghan

How to connect to a remote database using PostgreSQL on the command line

On the command line type in the following command psql -h 196.41.214.143 -U USERNAME -d DATABASE Replace USERNAME with the username associated to the database and DATABASEwith the database name. After executing the command it will prompt you for you password

April 7, 2018 · 1 min · 41 words · icarnaghan

How to convert RPM packages to DEB packages using Ubuntu

NOTE: Has been tested on Ubuntu 9.10 In Ubuntu open Synaptic Package Manager ‘System->Administration->Synaptic Package Manager’ Now we need to install 2 apps called alien and fakeroot alien - Convert and install rpm and other packages fakeroot - Gives a fake root environment To install them simply type alien in the Quick search box and mark for installation and do the same for fakeroot. ...

April 7, 2018 · 1 min · 132 words · icarnaghan