Tag: linux command

  • 6 important examples of cd command on Linux and Unix Systems

    6 important examples of cd command on Linux and Unix Systems

    In Linux and Unix Systems, cd command is one the basic,essential and frequently use command. Abbreviation of cd is “Change Directory” . For Linux/Unix System Administrator, it is important to know by how many ways cd command can be used. In this post, I have listed 6 examples which will help you in your daily […]

  • How to set motd in linux

    How to set motd in linux

    In this tutorial we will learn,how to set Message Of The Day ( motd ) on Linux systems. The motd abbreviation is “Message Of The Day”. The motd is widely used in Linux servers. Uses of MOTD ( Message Of The Day ) As the name defines, the motd is used for displaying message when […]

  • How to find absolute path of command on Linux / Unix : which command

    How to find absolute path of command on Linux / Unix : which command

    In Linux and Unix systems, commands are executable files. The commands may be specific with user environment.We can set the absolute path of specific command as per user in environment.If we require the information, to get the absolute path of command. In that case we will use which command. To find the absolute path of […]

  • How to show user account password expiration detail on Linux

    How to show user account password expiration detail on Linux

    The post is about to show account aging information.To get details of user account password expiration ,we use the command chage. With chage command use the option -l or –list. The chage program requires a shadow password file to be available.The absolute path of shadow file is /etc/shadow.It is notable that /etc/shadow file has password […]

  • How to show line numbers with less command in Linux

    How to show line numbers with less command in Linux

    Today,in this post we will learn, How to show line numbers with less command in Linux.In our previous post we have described about how to show line number with cat command. Less command is similar to more command but it has more features.As the name suggest, it read less output rather than reading the entire […]

  • Allow only members of Wheel group to use su command on RHEL/CentOS

    Allow only members of Wheel group to use su command on RHEL/CentOS

    In this tutorial we will learn,how to allow only members of Wheel group to use su command.Means only members of wheel group can switch to another user by using su command.As we know that in Red Hat based operating system, wheel group is a special administrative group. To allow only Wheel group’s member to use […]