• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/51

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

51 Cards in this Set

  • Front
  • Back

Date

Lists the date, day, and time.

Cal

Displays a calendar of the current month.

Df

Displays the current amount of free space on your disk drives.

Free

Displays the amount of free memory.

Exit

Ends the terminal session.

Ctrl-Alt-F1 through Ctrl-Alt-F6

Opens virtual terminals/consoles.

Alt F1-F6

Switches between virtual consoles.

Pwd

Print name of current working directory.

Cd

Change directory.

Ls

List directory contents

File

Determine file type

Less

View file contents

/

The root directory.

/bin

Contains binaries that must be present for the system to boot and run.

/boot

Contains the Linux kernel, initial RAM disk image (for drivers needed at boot time), and the boot loader.

/dev

Contains device nodes, where the kernel maintains a list of all the devices it understands.

Cd -

Changes the working directory to the previous working directory.

cd ~user_name

Changes the working directory to the home directory of the user_name.

Ls -a

List all files, even those with names that begin with a period, which are normally not listed (i.e., hidden).

Ls -A

Like the -a option above except it does not list . (current directory) and .. (parent directory).

Ls -d

Use this in conjunction with -l to see details about the directory rather than its contents.

Ls -F

Will append an indicator character to the end of each listed name. For example, a "/" if the name is a directory.

Ls -h

Display file sizes in human readable format rather than in bytes.

Ls -r

Display the results in reverse order.

Ls -S

Sort results by file size.

Ls -t

Sort by modification time.

/etc

The /etc directory contains all of the system-wide configuration files. It also contains a collection of shell scripts which start each of the system services at boot time. Everything in this directory should be readable text.

/home

In normal configurations, each user is given a directory in /home. Ordinary users can only write files in their home directories. This limitation protects the system from errant user activity.

/lib

Contains shared library files used by the core system programs. These are similar to DLLs in Windows.

/lost+found

Each formatted partition or device using a Linux file system, such as ext3, will have this directory. It is used in the case of a partial recovery from a file system corruption event. Unless something really bad has happened to your system, this directory will remain empty.

/media

On modern Linux systems the /media directory will contain the mount points for removable media such as USB drives, CD-ROMs, etc. that are mounted automatically at insertion.

/mnt

On older Linux systems, the /mnt directory contains mount points for removable devices that have been mounted manually.

/opt

The /opt directory is used to install “optional” software. This is mainly used to hold commercial software products that may be installed on your system.

/proc

The /proc directory is special. It's not a real file system in the sense of files stored on your hard drive. Rather, it is a virtual file system maintained by the Linux kernel. The “files” it contains are peepholes into the kernel itself. The files are readable and will give you a picture of how the kernel sees your computer.

/root

This is the home directory for the root account.

/sbin

This directory contains “system” binaries. These are programs that perform vital system tasks that are generally reserved for the superuser.

/tmp

The /tmp directory is intended for storage of temporary, transient files created by various programs. Some configurations cause this directory to be emptied each time the system is rebooted.

/usr

The /usr directory tree is likely the largest one on a Linux system. It contains all the programs and support files used by regular users.

/usr/bin

/usr/bin contains the executable programs installed by your Linux distribution. It is not uncommon for this directory to hold thousands of programs.

/usr/lib

The shared libraries for the programs in /usr/bin.

/usr/local

The /usr/local tree is where programs that are not included with your distribution but are intended for system- wide use are installed. Programs compiled from source code are normally installed in /usr/local/bin. On a newly installed Linux system, this tree exists, but it will be empty until the system administrator puts something in it.

/usr/sbin

Contains more system administration programs.

/usr/share

/usr/share contains all the shared data used by programs in /usr/bin. This includes things like default configuration files, icons, screen backgrounds, sound files, etc.

/usr/share/doc

Most packages installed on the system will include some kind of documentation. In /usr/share/doc, we will find documentation files organized by package.

/var

With the exception of /tmp


and /home, the directories we have looked at so far remain relatively static, that is, their contents don't change. The /var directory tree is where data that is likely to change is stored. Various databases, spool files, user mail, etc. are located here.

/var/log

/var/log contains log files, records of various system activity. These are very important and should be monitored from time to time. The most useful one is


/var/log/messages. Note that for security reasons on some systems, you must be the superuser to view log files .

cp

Copy files and directories.

mv

Move/rename files and directories.

mkdir

Create directories.

rm

Remove files and directories.

ln

Create hard and symbolic links.