Home > Articles

  • Print
  • + Share This
This chapter is from the book

Ordinary Files and Directory Files

Ordinary files, or simply files, are files that can hold documents, pictures, programs, and other kinds of data. Directory files, also referred to as directories or folders, can hold ordinary files and other directory files.

The Working Directory

pwd

While you are logged in on a character-based interface to a Linux system, you are always associated with a directory. The directory you are associated with is called the working directory or current directory. Sometimes this association is referred to in a physical sense: “You are in (or working in) the zach directory.” The pwd (print working directory) builtin displays the pathname of the working directory.

login: max
Password:
Last login: Wed Oct 20 11:14:21 from 172.16.192.150
$ pwd
/home/max

Your Home Directory

When you first log in on a Linux system or start a terminal emulator window, the working directory is your home directory. To display the pathname of your home directory, use pwd just after you log in.

  • + Share This
  • 🔖 Save To Your Account