How Unix System Logs Files work
Unix system log files include:
- utmp
- wtmp
- lastlog
Unix records information about current users in the file utmp, logins and logouts in the file wtmp, and last logins in the file lastlog. The time stamps of date changes, shutdowns and reboots are also logged in the wtmp file.
The usual locations of these files are:
Log file Usual location utmp /etc/utmp wtmp /usr/adm/wtmp lastlog /usr/adm/lastlog
Editing Unix System Log Files
These log files are not text files that can be edited by hand with vi; these are binary files which should be edited with programs specifically written for this purpose.
- How to Copy UNIX Files to Windows
For those computer users that have both Unix and Window’s operating systems, you should know that you can easily copy your Unix files from a Unix computer and transfer them to a Windows computer. Using Client for NFS, you can transfer any existing Unix files from your Unix server to a Windows based server. It [...]...
- How Unix Timestamps Work
Unix stores two times for every file, the last modification time of the file and the last access time of the file. `ls -lT` displays the last modification time of files. bash-2.05a$ ls -lT timestamp.shtml -rw-r–r– 1 will staff 885 Mar 5 01:50:53 2004 timestamp.shtml `ls -lTu` displays the last access time of files. bash-2.05a$ [...]...
- How to find a Unix command
Unix provides hundreds of useful commands for all sorts of purposes, but it is sometimes difficult to find the specific command you are looking for. To assist you with this task, most versions of Unix provide the `man -k` command. The `man -k` command searches the online manual pages to help you find the Unix [...]...
- How to Copy a Directory from DOS to UNIX
DOS and Unix are both well-seasoned operating software. While they don’t have a graphical user interface, they definitely suffice for those who like barebones, efficient software. For those who still have DOS files on their PC and would like to switch them over to UNIX, here are some tips. Even though DOS and Unix are [...]...
- How to Use the Unix Find Command
The Unix find command, as the name implies, is a command that you can enter into the command line, or terminal, of a Unix operating system, allowing you to process any given set of files or directories. It is a highly useful command that you can take advantage of on Unix based operating system, making [...]...




