ALIAS:

ALIAS:

alias   ls=“ls –l”
alias  p= “ping  127.0.0.1”

 

The Prompt:
PS1  stores a character string that bash use as a prompt.
PS1=“<\u@\h:\w>$ ”      [<user1@wtutopcpc:/etc>$ ]

 

\u

username

\h

hostname

\H

fully qualified domain name

\w

working directory (complete bath  ex:  /root/wali/dir1)

\W

working directory (show current directory only  ex: dir1)

\t

Current time in 24 hr HH:MM:SS format

\T

Current time in 12 hr HH:MM:SS format

\@

Current time in 12 hr AM/PM format

\d

date in Weekday Month Date format

\!

History number of this (not the previous but for the one you will type) command

\#

the command number of this (not the previous but for the one you will type) command

\n

new line

 

Connect With Us
Instant Query
Your Name :
Email Address :
Message :