List/Grid Linux/Unix Subscribe RSS feed of category Linux/Unix
How to install Wine in Ubuntu
Wine is free and open source application for Unix / Linux based Operating Systems which allows us to run applications written for Microsoft Windows. WINE is an acronym for WINdows Emulator. WINE also provides a software library, Winelib, which developers can use to compile Windows applications to port them to Unix / Linux based systems. In this tutorial, I will show you how to install Wine in Ubuntu using both…
How to install Eclipse in Linux
Eclipse is a an IDE i.e Integrated Development Environment tool mostly used by developers for JAVA development. This tool support development in a number of languages like C, C++, COBOL, Java, Perl, PHP, Python, Ruby, etc. and also supports plugins which can let you develop projects in a number of other languages as well. Eclipse SDK is free and open source software released under the terms of the Eclipse Public License….
How to install or update Firefox in Linux using Terminal
In this tutorial, I will show you how can you install or update latest version of Firefox in Linux using Terminal commands. Method explained is tested on Ubuntu 11.10 to install Firefox 10.0 and it probably work on all the Linux based Operating Systems. If you already have older version of Firefox installed in your system, then it should not be running while getting this update. If you are not…
How to create a Terminal Clock using Shell Script
date command displays current date and time to the Terminal and we can use this command to recursively display time every second on Terminal which will look like a Terminal Clock. In this tutorial, I will show you how to create a Shell Script which will make the terminal to show system time every second like a clock. Default output of date command prints result in the format shown in…
How to find Average of Numbers provided through Command Line using Shell Script
In this tutorial, I will show you how to use Shell Script to find Average of any number of arguments (numbers) provided through Command Line. The script will find show an error if no argument is provided, otherwise it will find Average of numbers provided and prints its output on the Terminal. Algorithm: Check if the numbers of arguments supplied are equal to 0 or not. If yes, print error message…
How to check for leap year in Shell Script
In this tutorial, I will show you a simple shell script to check whether a given number provided through command line denotes a leap year or not using shell script. Algorithm is fairly simple Check whether the number of command line arguments are equal to 1 or not If not equal to 1, then print an error message and exit, otherwise proceed to next step. Store the value of the…
How To reverse the digits of a number using Shell Scripting
In this tutorial, I will share a simple script to reverse a number provided through command line in Unix/Linux Operating System. The script will print the reversed digits of provided number and if no number or more than one numbers are provided, then it will print an error. Algorithm is fairly simple : Let n be the given number. Set rev and rem equals to 0. Find last digit of…
How to enable automatic login in Ubuntu
By default Automatic Login feature is disabled for every user you create in Ubuntu for security reasons, but you can enable this feature which will not ask you to enter your account password when you try to login next time in your account. Enabling Automatic Login is not a best practice. But if you are sure that no one has physical access to your PC then you can enable this…
The passwd Command – Terminal
passwd is command or tool in Unix/Linux-based operating systems which enables the user to change or configure Password of a User account. The password entered by user is run through a Key Derivation Function which converts the plain text to equivalent hash which is encrypted one. Original password is not saved anywhere for security reasons, only this hashed version of new password is stored in /etc/passwd file. Hashed version of…