List/Grid Tag Archives: Terminal
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…
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…
Login and Logout using login, exit, logout commands – Terminal
If you are working on large system and the administrator has provided you just a terminal, then you can login to that workstation if you have your own user-id and password. In this example I will login to my own workstation using user-id howtoideas. Loging In: You can login to a workstation using following command login [username] example login howtoideas If above command is showing an error “login: Cannot possibly…
How to check which version of Ubuntu you are running
You can check version of Ubuntu you are running either by checking System Information or using Command Line. Instructions: Using System Information Open Dash home, and search for System Info. In System Info dialogue, Ubuntu version number is given below the logo of Ubuntu in the right part of dialogue. Using Command line (Terminal) Open Terminal and type in the following command and press Enter, which will print Distribution Specific…
How To Change User Account Password using Terminal
Most of the Linux Operating Systems provides a GUI to change User Account Password. But you can do the same using Terminal only. In this tutorial, I will show you how can you achieve that. Instructions: Open terminal and type in the following command and press Enter. passwd Terminal will show you a message about Changing password for your user account and it will also ask you to enter your…