Important Redhat commands

more commands Red hat linux commands

Command Purpose
ls or ll List the all files in the present directory.
ls -l List the all files in a proper order with details
ls -a List all files and folders details include hidden files.
ls -lh List out files and folders details in human readable.
ls -lah List out all (include hidden) files details in human readable format.
 pwd  Present Working Directory; Display now where do you working.
 hostname  display the system name. Only one name for system.
 whoami Username, there are multiple users in a system (Hostname)
 Who How many console (Login) users logined in your system?
 mv Move the file from one place to another place.
Rename the file or folder
Cut & paste in somewhere.

Can you elaborate about [username@hostname ~]# and [username@hostname ~] $

[username@hostname ~]#:
Username: An User who login in the System.
Hostname: Always same, the system name.
~ (Tilda) represents the present working directory. If user in Desktop, it replaces ~ symbol.
# (Hash): Represents granted all privileges to the users.
$ (Dollar): Represents have limited privileges only to access. Required more privileges to process.

In Other words [username@hostname ~]# possess have all privileges to access the file and [username@hostname ~] $ represents the user has limited privileges to access/process the system.