?What does the \\t and \\a escape sequence do? Hey there! You can play, pause an
ID: 3679049 • Letter: #
Question
?What does the and escape sequence do?
Hey there! You can play, pause and practise here...Learn by watching:) How can I change the background and text colour? How to Check for existence of a file ? How to use nano editor to save a file ? How to search using grep command ? Print specifies lines using sed Understanding atime, ctime and mtime How to use find command and search by name,type,size? Print lines starting, ending or around matching pattern Backup existing data during mv command How to create hardlinks in linux? How to create symlinks in linux? How to exact filename and dirname from given path? Create a file with vim editor Find files used by a process What happens when you open a file and delete it Why to use rsync instead of cp command? Want to see more of this? Change terminal background and foreground color You can use 'setterm' command. See 'setterm -help' for list of colo setterm -term linux -back 'colour' -fore 'text_color' -clear To set 'black' background and red foreground color we execute: setterm -term linux -back black -fore red -clear Type 'reset' to revert your changes!Explanation / Answer
Please find list of Bash Escape Sequences:
an ASCII bell character (07)
d the date in "Weekday Month Date" format
(e.g., "Tue May 26")
e an ASCII escape character (033)
h the hostname up to the first `.'
H the hostname
j the number of jobs currently managed by the
shell
l the basename of the shell's terminal device
name
newline
carriage return
s the name of the shell, the basename of $0
(the portion following the final slash)
the current time in 24-hour HH:MM:SS format
T the current time in 12-hour HH:MM:SS format
@ the current time in 12-hour am/pm format
u the username of the current user
the version of bash (e.g., 2.00)
V the release of bash, version + patchlevel
(e.g., 2.00.0)
w the current working directory
W the basename of the current working direc
tory
! the history number of this command
# the command number of this command
$ if the effective UID is 0, a #, otherwise a
$
nn the character corresponding to the octal
number nnn
\ a backslash
[ begin a sequence of non-printing characters,
which could be used to embed a terminal con
trol sequence into the prompt
] end a sequence of non-printing characters
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.