Trending
Heat Index
Linux Beginner
 
Read More
220How-to-update-Kernel-version-on-CentOS-7
 
Read More
129Light-weight-Text-Editor-tools
 
Read More
136Linux-Route-Add-Command-with-examples

 
Read More
223How-to-create-Multiple-IP-Address-to-Single-Network-interface
 
Read More
107How-to-Install-Linux-Kernel-4.5-in-Ubuntu
Shells
Most Recent
 
Read More
June 3, 2016

How to Install Fish – Friendly Interactive Shell in Linux

To Install Fish – Friendly Interactive Shell in Linux

Fish stands for Friendly Interactive Shell for Unix like operating systems. It provides user friendly and very interactive environment for Linux users. The procedures to install Fish is explained in this manual.

Features Supports  auto tab completion feature. User- friendly, Simple, Clean and Consistent Shell. Syntax independency Arrow key support to navigate to the previous commands. Syntax highlighting support with auto error correction. To install Friendly Interactive Shell in Linux

Using Fish repositories, Fish packages will be installed on Linux distributions. Here, we have listed the commands to add the [...]

184
 
Read More
May 5, 2016

How to Create and Execute New Service in SystemD – Shell Script

Steps to Create and Execute New Service Units in SystemD Using Shell Script

SystemD is a system service manager in linux. Creating and executing new service units in SystemD using shell scripting is explained in this session.

To view service units

Execute the below command in graphical.target level, to have a look at service units.

root@linuxhelp:~# systemctl --type=service UNIT LOAD ACTIVE SUB DESCRIPTION accounts-daemon.service loaded active running Accounts Service anacron.service loaded active running Run anacron jobs apparmor.service loaded active exited LSB: AppArmor initialization apport.service [...]
129
 
Read More
April 27, 2016

History Command in Linux With Examples

History Command in Linux

History command is used to list the previously used commands.

1. Method to list all executed command in Linux.

Run the following command to list the previously executed command.

[root@linuxhelp Desktop]# history 1  history 2  ls -l 3  time 4  export HISTIGNORE='ls -l:w:' 5  history 6  export HISTIGNORE='ls -l:w:' 7  history | tail -2 8  history | tail -3 9  history | tail -5 10  history | tail -7 . . . . 28  uptime 29  history | tail -3 30  history 2. To reverse search the previously executed command.

Method I To know your previously executed command hit ‘ctrl+r’ and type the command name starting letter and [...]

101
 
Read More
April 13, 2016

Basic Shell scripting in Linux

Basic Shell scripting in Linux

Scripts is a collection of commands that are stored in a file. Shell reads this file and acts on the commands as if they were typed in the keyboard. In this article, we will learn how to write Shell Scripts.

Basic step of shell script [root@linuxhelp~]# vim file1.sh Echo “this is my first script”

Note: No need of giving .sh at last of file, it will automatically recognize the script. So ./filename is alone is enough to run the script.

[root@linuxhelp~]# sh file1.sh this is my first script

If it not executed we need to change the mode to be executed as follows,

[root@linuxhelp~]# chmod 744 file1.sh

Next, we can [...]

136
 
Read More
March 29, 2016

How to use dir command with Various Arguments and Options in Linux

To use dir command with Various Arguments and Options in Linux

dir command is used to view the contents of directory with various Arguments and options are explained with examples in this tutorial.

Syntax

dir [OPTION] [FILE]

The sample example for dir Command usage is as follows,

Output

[user1@linuxhelp ~]$ dir / bin dev home lib64 media opt root sbin sys usr boot etc lib lost+found mnt proc run srv tmp var To view the /home directory file [user1@linuxhelp ~]$ dir /home user1

Another example to view /etc directory

[user1@linuxhelp ~]$ dir /etc abrt gssproxy profile adjtime hba.conf [...]
46
 
Read More
March 29, 2016

Echo Command in Linux with Examples

Echo Command in Linux

Echo is a built in command for bash and C shells. It can be used to display a line of text on a standard output or it could able to append into a new file.

Syntax

echo <options> <contents>

To input a line of text and display on standard output

[root@linuxhelp Desktop]# echo Linuxhelp is a master in linux and Opensource Linuxhelp is a master in linux and Opensource To declare a variable and echo its value

We will declare a variable of x and assign its value to 10

[root@linuxhelp Desktop]# x=100

Echo its value:

[root@linuxhelp Desktop]# echo The value of varible x = $x The value of varible x = [...]
98
 
Read More
March 25, 2016

Sort Command in Linux with Examples

Sort Command

In this article we will cover about various Sort command used in Linux. It is used to print lines of input text files in sorted order.

To create a text file

Options -e enables interpretation of backslash /n tells echo to write each string to new line

[user1@linuxhelp Desktop]$ echo -e "centos\nredhat\ndebian\nlinuxmint\narch\nubuntu\nfedora\nopensuse\nmageia\nmanjaro" > os.txt To look at the contents of file [user1@linuxhelp Desktop]$ cat os.txt centos redhat debian linuxmint arch ubuntu fedora opensuse mageia manjaro To sort contents of file

The following sort command is used to sort contents of file.

[user1@linuxhelp Desktop]$ sort [...]
34
 
Read More
March 22, 2016

ps Command in Linux with Examples

ps Command

ps command is used to find the running processes of the system.

Syntax

ps

ps without any option

This is a very basic ps usage. It shows you process ID (PID), TTY command running place, Time and CMD.

Example

[user1@linuxhelp ~]$ps PID TTY TIME CMD 7822 pts/3 00:00:00 su 7831 pts/3 00:00:00 bash 13061 pts/3 00:00:00 ps

This information is unsorted result.

Current Processes

The following command is used to view all the current running processes. Option ‘f‘ is used to display the detailed information about the process

Example

[user1@linuxhelp ~]$ ps ax PID TTY STAT TIME [...]
84
 
Read More
March 22, 2016

du Command (Disk Management) in Linux with Examples

Disk Usage du Command

Introduction:

The Disk Usage du command is the static commands for UNIX/LINUX based distributions. This command is used to check information of disk usage of the files and directories of the system. The du utility first appeared in version 1 of AT&T UNIX

The Disk usage (du)

The du command has many parameter options that can be used to get the results in many formats. The du command also displays the files and directory sizes in different options as per need. Let we discuss du command with various options.

To find disk usage status

The following command will display full disk usage of the /home/linuxManual. The number shown 64, 68, 60 [...]

71
 
Read More
March 22, 2016

Password command in Linux with Examples

Password command

Password command is used to change the password for user accounts. User may change the password for their own account while the super user (root) may change the password for any account. Using this command, the validity period of the password can also be changed.

Syntax

passwd <options> <User-name>

Options -a, –all      : It is used only with -S and shows status of all users. -d, –delete : Deletes a user’s password then it makes empty. -l, –lock     : Locks password entry for rename. -f, –force    : Force the user to change password at the next login by expiring the password for name. -S, –status : To [...]

55
Advertisment