Learning the Unix Operating System by Learning the UNIX Operating System

Learning the Unix Operating System by Learning the UNIX Operating System

Author:Learning the UNIX Operating System [System, Learning the UNIX Operating]
Language: fra
Format: epub, pdf
Tags: Informatique
Publisher: O'Reilly
Published: 2002-06-30T15:40:55+00:00


[Chapter 3] Your UNIX Account

Previous: 2.7 Quitting

Chapter 3

Next: 3.2 Looking Inside

Files

3. Your UNIX Account

Contents:

The UNIX Filesystem

Looking Inside Files

Protecting and Sharing Files

Electronic Mail

Changing Your Password

Customizing Your Account

Once you log in, you can use the many facilities UNIX provides. As an authorized system user, you have an account that gives you:

● A place in the UNIX filesystem where you can store your files.

● A username that identifies you and lets you control access to your files and receive messages from other users.

● A customizable environment that you can tailor to your preferences.

3.1 The UNIX Filesystem

A file is the unit of storage in UNIX, as in many other systems. A file can hold anything: text (a report you're writing, a to-do list), a program, digitally encoded pictures or sound, and so on. All of those are just sequences of raw data until they are interpreted by the right program.

In UNIX, files are organized into directories. A directory is actually a special kind of file where the system stores information about other files. A directory can be thought of as a place, so that files are said to be contained in directories and you are said to work inside a directory. (If you've used a Macintosh or Microsoft Windows computer, a UNIX directory is a lot like a folder. MS-DOS and UNIX directories are very similar.)

file:///C|/Documents%20and%20Settings/nmyers/Desktop/learn_unix/ch03_01.htm (1 of 10) [6/30/2002 3:41:09 PM]

[Chapter 3] Your UNIX Account

3.1.1 Your Home Directory

When you log in to UNIX, you're placed in a directory called your home directory. This home directory, a unique place in the UNIX filesystem, contains the files you use almost every time you log in. In your home directory, you can make your own files. As you'll see in a minute, you can also store your own directories within your home directory. Like folders in a file cabinet, this is a good way to organize your files.

3.1.2 Your Working Directory

Your working directory (sometimes called your current working directory) is the directory you're currently working in. At the start of every session, your home directory is your working directory. You may change to another directory, in which case the directory you move to becomes your working directory.

Unless you tell UNIX otherwise, all commands that you enter apply to the files in your working directory. In the same way, when you create files, they're created in your working directory.

3.1.3 The Directory Tree

All directories on a UNIX system are organized into a hierarchical structure that you can imagine as a family tree. The parent directory of the tree is known as the root directory and is written as a forward slash (/).

The root contains several directories. Figure 3.1 shows the top of an imaginary UNIX filesystem tree -

the root directory and some of the directories under the root.

Figure 3.1: Example of a directory tree

Figure 3.1

bin, etc, users, tmp, and usr are some of the subdirectories (child directories) of root. These are fairly standard directories and usually contain specific kinds of system files. For instance, bin contains many UNIX commands.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.