UNIX 2 - UNIX Command Line Focus UNIX is a command line...

Info iconThis preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
1 UNIX UNIX Fundamentals Fundamentals & The Filesystem CNIT 34000 – Lecture 2 UNIX Command Line Focus UNIX is a command line only operating system X-Windows is technically a utility that runs on UNIX, not part of the operating system itself There are graphical administration tools available for various UNIX flavors However, none are standardized across UNIX implementations If you want to be able to administrate any and all UNIXes, you must be able to work at the command line Lecture Note Syntax Information will be shown in a proportional font such as Arial Filenames, commands and system output will be shown in a fixed font such as Courier Example: Do not do this: sudo rm –Rf / UNIX Command Structure UNIX commands take the form of: command flags operand Command The command itself Flags Options to the command in one of two forms Single character -x Multiple characters --list Operand The target of the command The Superuser Account The superuser account is “root” Login as root Usually only locally Login as someone else and change to root With the su command Some UNIX implementations can limit who can su to root Guard the root password with your life UNIX has no ability to create root equivalent accounts You can allow others to run applications as root The UNIX Shell The command line parser used to interact with the system Starts, stops, and manages processes Manages files etc. Commands can be entered manually or written into a script Shell scripting is a powerful tool that greatly simplifies the administration of UNIX systems We will spend half of this course focusing on shell scripting
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 Types of Shells Login shell Started automatically when the user logs into the system Specified in the /etc/passwd file (more later) Parses startup scripts in the user’s home directory ~/.login, ~/.cshrc, ~/.profile Used to configure the user’s environment When closed, the user logs out Interactive shell A non-login shell into which the user enters commands Non-interactive shell Normally contains a script Inherits environment variables from the parent shell
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 05/07/2010 for the course CNIT 340 taught by Professor Rawles during the Fall '09 term at Purdue University-West Lafayette.

Page1 / 5

UNIX 2 - UNIX Command Line Focus UNIX is a command line...

This preview shows document pages 1 - 3. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online