Linux command

Linux command

Linux show last login user

 

How to show last login on Linux Fedora

 

   The Linux last command can be very useful to show last login user on the system.  The example below show the execution of Linux last command on Linux Fedora system.

 

Show last login user

 

1.  Open Linux  shell terminal Application --> System Tools --> Terminal.


chage

 

Linux chage Command.

 

   Linux chage command is use to chage user password expiry information on Linux system.  The Linux chage command is one of external shell command that locate under /usr/bin/ directory.  The command example below show how to get chage command manual using shell command, this help show information on how to use the Linux chage command, the chage command options and the arguments that can be use with Linux chage command.

 

Get Linux chage command manual

 


Linux Commands

 

List all Linux commands that can be execute.

 

   List all Linux commands that can be execute or the Linux commands that you can run on your Linux computer or server.  The Linux command example below show how you could list all Linux commands using the compgen command.  The example below use additional command, sort command and less command to sort and make it easier to display the list of Linux command.

 

List Linux commands with compgen command

 


List command alias

 

List command alias.

 

   Want to know what Linux command that already have been alias on your Linux distro.  The step by step example on Linux list command alias below show the example of alias command output that show the list of command that already have been alias on your Linux system.

 

Linux list of command alias output example.

 

Login on your Linux system and execute alias command as show on example below to list command alias.


wait

 

Linux wait command help.

 

   Linux wait command is use to wait for job completion and return exit status.  The Linux wait command is one of bash built in command.  The command below show how to get Linux wait command help, this help show information on how to use the Linux wait command, the wait command options and the arguments that can be use with Linux wait command.

 

Get Linux wait command help

 

  Execute help command and the name of Linux command that we want the help file, as show on example below.

 

wait linux command


Ubuntu run command as root user on shell terminal

 

Ubuntu run command as root user on shell terminal

 

   On Ubuntu every times you need to run command as root user on shell terminal you may need to use sudo command to make sure that you can run command as root user without using sudo command.  To run command that can only execute by privileges user, the sudo command must be put in front of every command that run... that make very annoying when you need to execute many command that need that privileges.  The step by step example below show how you can make your terminal or keep your terminal run as root user and you dont have to put sudo command in every command that you want to execute.

 

Run as root user

 

1.  Open shell terminal.

Ubuntu open terminal


Check currently login user on your Linux system

 

Check currently login user on your Linux system.

 

   How to check who is currently login on your Linux system now?  To show who is login or if you want to check currently login user... or if you want to check who using your Linux system, just execute who command as show on the example below.

 

Linux who check currently login user:

 

Open shell terminal and type in who command and then hit Enter key…

Check currently login user on your Linux system

[root@fedora12 ~]# who


List all group on Linux

 

List all group on Linux Fedora.

 

   How to list all group on Linux system?  The command example below show how to list all group on Linux Fedora system.  The list of group name came from the group configuration file is store in /etc/group and you can also use cat command to display the contents of group file. Please note that you may need root user privilege to view the contents of group file.

 

List all group in Linux example:

 

1.  Open the shell terminal, type in su - command to become root user.


null

 

Get help on Linux null Command.

 

   The command example below show how to get null ( : ) command manual or help on Linux null command using shell command.

 

Get Linux null : command help

 

  Execute help command and the name of Linux command that we want the help file, the example below we execute help command with -m option to get the help for null command using the manpage format.


conditional

 

Get help on Linux conditional Command.

 

   Linux conditional command ( [ ) is use to evaluate conditional expression or execute conditional command on Linux system.  The Linux conditional command is one of bash shell built in command.  The command example below show how to get conditional command manual or help on Linux conditional command using shell command, this help show information on how to use the Linux conditional command, the conditional command options and the arguments that can be use with Linux conditional command.

 


Syndicate content