Linux Classes

Linux Classes

Ubuntu run command as root user on shell terminal

Basic Linux Command Example: 

 

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:

 


Linux list all user

Basic Linux Command Example: 

 

Linux list all user.

 


Linux change root password example

Basic Linux Command Example: 

 

Linux Change root Password.

 

   The step by step article on Linux change root password below show the step that you need to take to change root password.  Please note that only root user can change root password, so you need to login as root or use su command and then change root password.  If you lost your root password this article on how to reset root password may help you to reset root user password. 

 

Linux change root password example:

 

1. Open the shell terminal, type in su - command then hit 'Enter' key to be as root user on your Linux system.

su root password


Check Linux User Information using Linux finger Command

Basic Linux Command Example: 

 

Check Linux User Information using Linux finger Command.

 

   The example below use finger command to check Linux user information.  The finger command can be use to get user information including user login name, user full name, user home directory,  user shell, user terminal name (user tty), user idle time, user came from.., user login time, user office location and user phone number.

 

Check user information example:

 


passwd

 

View Linux passwd command Manual.

 

   The example below show how to use man command to view Linux passwd command manual on Linux Fedora operating system.  To display Linux passwd command manual just type in man command and the command name that you want to display the manual page... in this example we want to view Linux passwd command manual... so after the man command we type in passwd (the Linux command name that we want to view the manual).

 

Linux passwd command manual example:

 

Open the shell terminal, type in man passwd as example below.

View Linux passwd command Manual

[root@fedora11 ~]# man passwd


Linux remove symbolic link

 

Linux remove symbolic link.

 


Linux create symlink

 

Linux create symlink or symbolic link.

 

   On linux system, the shotcut to file is call symlink or symbolic link.  The article on Linux create symlink below show step by step to create symlink between two files on linux system.

 

Create symlink example.

 

1.  Log in on the system.

 


Linux delete file

 

Step by step how to delete file on Linux.

 

   How to delete file on Linux system?  The step by step article on Linux delete file below show an example how to delete Linux file or delete file on Linux system using the rm command..

 

Linux delete file example:

 


Pages

Subscribe to RSS - Linux Classes