-
Notifications
You must be signed in to change notification settings - Fork 2
Sysadmin grodoudou shlog 07062012
Yannouk edited this page Jul 5, 2012
·
1 revision
- Get it from
https://github.com/Seizam/seizamcore/wiki/shlog
and store the file in/root/
root@ns225381:~# wget https://gist.github.com/raw/1282791/860b01d7c6ad588c7f77c76e7237dfc0866991b5/shlog.sh
- Rename it to
.shlog.sh
root@ns225381:~# mv shlog.sh .shlog.sh
- Edit
/root/bashrc
: addsource ${HOME}/.shlog.sh
in the end of the file
root@ns225381:~# nano .bashrc
- Logout then login, shlog is now available for root user. Syntax:
usage: shlog command [ params ] commands: - start : start a new recording session - edit 'filename' : edit a file and record the diff - comment : add a comment - stop : stop a recording session and get the log