UNIX Operating System
UNIX Operating System
UNIX is a multi-user operating system. This means that multiple users can use the system
at the same time. the UNIX operating system is case-sensitive, in other words, a difference is
made between upper- and lower case. Always count this in when entering commands. Unix is
written in a mostly machine independent way. therefore more easily moved to new machines.
Unix from any kind of terminal and over dial-up phone lines or computer network connections.
Unix comes with a rich set of connectable tools which, even if they don't directly address the
problem at hand, can be conveniently composed. Unix also imposes relatively few arbitrary
limits and assumptions on the user or the problem domain and has thereby proven to be a
suitable platform on which to build many useful and highly portable research and commercial
applications.
Unix is a multi-user operating system. This means that several users can share the
computer simultaneously. To protect each user's data from damage by other users, Unix requires
each user "login" to the system to identify him. One or more spaces follow the program name
and separate arguments. Programs normally don't ever see un-expanded argument lists. Many
Unix programs can also take implicit arguments.
Unix files exist in directories. Every user has a "home directory", which is the "current
directory" after logging in. A user can make "sub directories" with the "mkdir", command and
make them the current directory with the "cd" command.
Unix files exist in directories. Every user has a "home directory", which is the "current
directory" after logging in. A user can make "sub directories" with the "mkdir", command and
make them the current directory with the "cd" command. Unix, a user would not expect an
application to provide an input text editor. Instead, one would expect to be able to use "text
editor" for all instances of editing text. Electronic mail, C programs, shell scripts, documents-to-
typeset can all be edited with the same text editor.
Commands of UNIX
cd ..-go up to the parent of the current directory
cd ../..-go up two levels, to the parent's parent
cd /-go to the top of the boot volume
cd /-Users-go to the top of the boot volume
cd ~-go to your home directory
Ls -List directories.
ls *.jpg-list the names of all files with names ending in ".jpg"
ls-list just the names of the files in the current directory
ls l-(long) list the files with their characteristics (size, privs, owner, etc)
ls lo-list the files with their flags (see chflags) in addition to the usual characteristics -l shows
ls a-list all files in the current directory (including those that would normally be invisible)
cat -Concatenate files to standard output.
grep -Find lines which match specified pattern
sedProbably the single most useful command for rearranging or extracting pieces of
data quickly. (A bit cryptic for many users, though.)
look, spell - Find possible spelling errors.
du, df -Display disk usage and free disk space.
Script -Keep a transcript of your session in a file.
who, whoami -Who is on the system.
Kill - process to terminate in various ways.