pondelok 5. júna 2023

Enable history with timestamp for new users

How to enable history with timestamp for new users?





1. ls -lha /etc/skel


# -a hiden files 

2. vi /etc/skel/.bashrc


HISTTIMEFORMAT="%d/%m/%y %T "


3. useradd user


4. passwd user


5. su user


as user: run some commands (ls, date, uptime....)


history



The same on gitlab: https://gitlab.com/martin.suraba/linux_lesson/-/blob/main/users/history_time_stamp_new_users.txt 

Žiadne komentáre:

Zverejnenie komentára