Table of Content
Глобальна зміна вигляду консолі для всіх користувачів
# vi /etc/profile.d/custom_prompt.sh #!/bin/sh export PROMPT_COMMAND= "echo -n \[\$(date +%H:%M:%S)\]\ " |
Вигляд буде такий
[09:35:46] [root@nginx popov] # |
Зміна вигляду консолі для поточного користувача
Add this line to the ~/.bashrc file:
export PROMPT_COMMAND= "echo -n \[\$(date +%H:%M:%S)\]\ " |
So the output will be something like:
[07:00:31] user@name:~$ |