Basic Linux Commands

View and Display Linux Fedora Directory Tree using tree Command

 

View Fedora Linux Directory Tree Using tree command

 

  The directory in Linux Fedora can be view by tree like format using the tree command.  The example below show the use of tree command to display Linux Fedora directory in tree like format, the example below also show the use of tree command to display directory inode number and files inode number on Linux Fedora system.

 

tree command example:

 

Upadate DataBase for locate Command using updatedb Command

 

Update database for locate command with updatedb command

 

   The updatedb command is use to update the database entry that use by locate command to search faster for files or folder in Linux system.  The database usually automatically updated daily by cron.  The example below show the use of updatedb command manually.

 

Example:

Type in the updatedb command on the terminal and then hit the Enter key.. wait for few second..

Check Linux System Information and Linux Version Using uname Command

 

Using uname Command to check Linux Version and System Information.

 

   The uname command can be use to print / display the Linux system information, the uname command also can be use to get the current version of your Linux operating system.  The basic Linux command article below use the uname command to get Linux version or to check kernel version name and other system information on Linux Fedora operating system.

 

Get and display all system information on Linux machine:

Create file and display file contents in Linux using cat command.

 

Create file and display file contents in Linux using cat command.

 

Display calendar with cal command.

 

Display calendar with cal command.

 

Using Linux alias command to create an substituted for Linux command.

 

Using Linux alias command to create an substituted for Linux command.

 

   Using Linux alias command to allow a string of Linux command ( long line of command ) to be substituted for a simple word command on fedora core system.

 

Browse from one directory to another directory with change directory cd command.

 

Browse from one directory to another directory with change directory cd command.

 

Browsing from one directory to another directory with cd command. The example below show the basic step on using the cd command to navigates / browsing through directory on the Linux system.

 

Copy contents of directory include hidden files and hidden directory using cp command.

 

Copy all contents inside Linux directory include the hidden files and hidden directory using cp command.

 

The cp command also can be use to copy all files and folder include all the hidden files and hidden directory, this is useful if we want to copy all the directory contents, as example that we want to copy the user home directory for backup.

 

Step:

• Set shopt dotglobe option to enable.

• Copy hidden files and folder.

Copy Linux Files and Copy Directory Using cp Command - Linux Basic Command.

 

Using Linux cp command to copy Linux files and copy directory .

 

The Linux cp command usually use to copy file and copy directory in Linux operating system. The cp command also can be use to make an link to other file in the system. The execution of cp command and all of the example below tested using bash shell on Linux Fedora Core operating system.

 

This article demonstrate step by step procedure on how to use Linux cp command to:

• Copy Linux files.

• Copy all file in directory.

Monitoring and display disk space usage using df command.

 

Monitoring and display disk space usage using df command.

 

Custom Search
Syndicate content