Basic Linux Commands Example



Computer Configuration GNU Linux Fedora using Linux Command

 

   The aim of this site is to document the most of basic Linux commands that usually use and available in every Linux distro.  The basic Linux command that use in this site is not limited to the Linux builtin command (The command that comes with Linux shell).  The external command or Linux program that can be execute on command line interpreter or execute via Linux shell also include in the step by step example on using basic Linux command.

 

How to use basic Linux command site:

 

   This site have label and act as menu for this site, click on the label for each basic Linux command with example.  Every page for the basic Linux command usually have an example on how the command could be use and the example to using the basic Linux command using step by step example approach... if you want to do or wonder what command can do task at hand... use the search box instead. best of luck...

 

Some simple tips working with command on Linux system:

 

   To find and display command location including command help file on Linux system, the whereis command can be use.  The example below show the command location for external command and builtin command.  The command example below can make easier for you to differentiate between Linux builtin command and other Linux command some say Linux external command that used as an example on this Basic Linux Command site.

 

Location of binary file for builtin command: Builtin command, usually have no binary file display, just manual file for type command display.

Builtin command, usually have no binary file display, just manual file for type command display.

[root@fedora ~]# whereis type

type: /usr/share/man/man1p/type.1p.gz /usr/share/man/man1/type.1.gz

[root@fedora ~]#

 

Location of binary file for ls command:  External Linux command, location under /bin/ls

External Linux command, location under /bin/ls

[root@fedora ~]# whereis ls

ls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz

[root@fedora ~]#

 

   To further check the type of command builtin or external command, the type command can be use as show on example below

 

Type of type command: The type is a shell builtin command

The type is a shell builtin command

[root@fedora ~]# type -a type

type is a shell builtin

[root@fedora ~]#

 

Type of ls command: External Linux command. The ls command binary file locate under /bin/ls and the ls command is aliased to ls --color=auto

External Linux command. The ls command binary file locate under /bin/ls and the ls command is aliased to ls --color=auto

[root@fedora ~]# type -a ls

ls is aliased to `ls --color=auto'

ls is /bin/ls

[root@fedora ~]#

 




0 comments: