![]() $kernel_version: The output of the uname -r command from $kernel_version variable. ![]() The following example displays three items separated by | (pipe) in the command prompt: ![]() ![]() You can display output of any Linux command in the prompt. Display output of any Linux command in the prompt You can also use to display the current time in 12-hour am/pm format as shown below: ~> export " You can also use \t to display the current time in the hh:mm:ss format as shown below: ~> export > In the following example, the command $(date) is executed to display the current time inside the prompt. In the PS1 environment variable, you can directly execute any Linux command, by specifying in the format $(linux_command).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |