Tutorial for Unix LS

UNIX is an operating system originally developed in 1969, but it later split into a number of branches, derivatives and new systems, such as Linux, that were written to allow UNIX applications to run on IBM-compatible hardware. Unix and most Unix-like systems contain a command called "ls" that lists the contents of a directory. The command accepts different parameters, each of which allow you to adjust the output of the content listing.

Instructions

    • 1

      Open a new terminal on your UNIX system. This varies based on your distribution, but most graphical interfaces have a "Terminal" option in their application menus. You can also connect remotely by SSH or Telnet to immediately access a terminal.

    • 2

      Navigate to the directory you would like to list. You are placed in your account's home directory by default. You can change your current directory by typing "cd /path/to/directory" without quotation marks, substituting "/path/to/directory" with the location of the directory in which you would like to work.

    • 3

      Type "ls" without quotation marks to display a brief list of files in the directory. Press "Enter."

    • 4

      Type "ls -a" without quotation marks to see configuration files, which are hidden on the default view.

    • 5

      Type "ls -la" to see the owner of each file and the amount of space it is taking on the hard drive.

Tips & Warnings

  • You can pipe the output of ls through the less command on Unix if there is a lot of text to display. This lets you display the output in screen-sized chunks. Use the "|" character followed by the word "less" to do this. For example, type "ls -a | less" without quotation marks.

Related Searches:

References

Comments

You May Also Like

  • Unix Kernel Tutorial

    If you are first beginning to use a Unix operating system, as opposed to a Windows-based OS, then you may be find...

  • Unix Tutorial for Beginners

    Unix is a multi-user, multi-tasking operating system (OS) created in 1969 at the Bell Laboratories. The term multi-user means that one instance...

  • Pipe Unix Tutorial

    The UNIX command pipe works like a physical pipe. It connects two UNIX commands and thus facilitates a one-way flow of data....

  • Unix Screen Command Tutorial

    The Unix command line provides access an extensive list of software tools designed to maximize command line efficiency. The Screen command features...

  • How to Find a File Extension in Unix

    All operating systems use file extensions to categorize files based on the types of programs they are used for. For example, in...

  • A Tutorial for AIX on Unix

    AIX is IBM's flavor of the Unix Operating System. It runs on IBM's RISC processors and integrates AT&T's System V UNIX with...

  • Advanced Unix Tutorial

    Unix is a computer language that allows the performance of commands through the use of text in a simple interface. Solaris, Linux,...

  • How to Create a Script File on Unix

    A Unix script file is a plain text file that contains a list of commands that are executed in order. It is...

  • Unix Command Tutorial

    Although there are graphical user interfaces available for Unix systems, it is still common to type commands at the terminal window. If...

  • Unix Programming Tutorial

    In 1969, engineers in Bell Labs came up with the idea of Unix, a multi-user scalable operating system. Unix evolved significantly over...

  • How to Compress Files in Unix

    The Unix operating system has multiple commands for file compression. Three of the commands are "compress," "pack" and "gzip." The "compress" and...

  • Tutorial for Unix

    UNIX is a powerful operating system that puts a great deal of responsibility in the hands of the Unix Administrator. UNIX gives...

  • Flar Create Tutorial for Unix

    You can use the "flar create" command to make backups or other types of archives in Unix. The command creates flar archives...

  • How to Get Discount Tickets to Las Vegas Shows

    Whether you live in Las Vegas or are planning a trip, here's a local's insider guide on what to expect when you're...

  • Tutorial on UNIX Sort Command

    The UNIX sort command is used to sort ASCII text files. It can be used to sort files of any size. The...

  • Unix Cut Command Tutorial

    The Unix "cut" command is used to locate and cut characters or fields from an input file. Unlike the "cut" command in...

  • Where is the Location of the Cabin Filter on a Lincoln LS?

    The Lincoln LS uses a cabin air filter to help prevent dust, pollen and debris from entering the cab of the vehicle....

  • Unix Architecture Tutorial

    The various UNIX Operating System versions like BSD, Solaris, AT&T, HP-UX and Berkley all adhere to a similar system architecture. Breaking down...

Related Ads

Featured