[Next] [Previous] [Up] [Top] [Contents]

CHAPTER 4 System Resources & Printing

4.1 System Resources

Commands to report or manage system resources.
System Resource Commands
Command/SyntaxWhat it will do
chsh (passwd -e/-s) username login_shellchange the user's login shell (often only by the superuser)
date [options]report the current date and time
df [options] [resource]report the summary of disk blocks and inodes free and in use
du [options] [directory or file]report amount of disk space in use+
hostname/uname display or set (super-user only) the name of the current machine
kill [options] [-SIGNAL] [pid#] [%job]send a signal to the process with the process id number (pid#) or job control number (%n). The default signal is to kill the process.
man [options] commandshow the manual (man) page for a command
passwd [options]set or change your password
ps [options]show status of active processes
script filesaves everything that appears on the screen to file until exit is executed
stty [options] set or display terminal control options
whereis [options] commandreport the binary, source, and man page locations for the command named
which commandreports the path to the command or the shell alias in use
who or wreport who is logged in and what processes are running

4.1.1 - df - summarize disk block and file usage
4.1.2 - du - report disk space in use
4.1.3 - ps - show status of active processes
4.1.4 - kill - terminate a process
4.1.5 - who - list current users
4.1.6 - whereis - report program locations
4.1.7 - which - report the command found
4.1.8 - hostname/uname - name of machine
4.1.9 - script - record your screen I/O
4.1.10 - date - current date and time

Introduction to Unix - 14 AUG 1996
[Next] [Previous] [Up] [Top] [Contents]