Results 1 to 6 of 6

Thread: How to check folder list by ls command

  1. #1
    Join Date
    Nov 2009
    Posts
    955

    How to check folder list by ls command

    Hi,
    How to check out the list of folders and the files inside it by using the ls command. I need some working information on this. what are the different type of commands which I can use for the same. What are the more different type of command which I can use in the same manner. What are the more in the same and what output is derived out of it. Thanks in advance.

  2. #2
    Join Date
    Jan 2008
    Posts
    3,388

    Re: How to check folder list by ls command

    In a shell of the terminal for Mac OS X, list the contents of a file operation is a basic need to know control. If you do not know what the Terminal application, I invite you to read the article on the introduction to the Terminal. The command ls can navigate the system files to determine the content. When you type ls, you always get the listing of the current directory.

  3. #3
    Join Date
    May 2008
    Posts
    4,085

    Re: How to check folder list by ls command

    Open a shell and begin by seeing what you have in the folder of your account (symbolized in the Finder by an icon that represents a house) for that type into the shell as a result of the ls command prompt, then press the enter key to execute this command- $ Ls. You will also get a list of suggestion for the other ls commands in the same.

  4. #4
    Join Date
    Apr 2008
    Posts
    3,267

    Re: How to check folder list by ls command

    The result of ls is displays like a list of all folders and files in the root folder yourname, of course, it is possible that your home folder. I advise you to check the case sensitive issue when enter text on the command line. Although this is not always necessary, Unix is case sensitive, and / Applications is different to / applications.

  5. #5
    Join Date
    Apr 2008
    Posts
    3,522

    Re: How to check folder list by ls command

    The ls command has many options that affect the result returned. Like either on its content, either format, or is about sorting items in the list. Indeed, it is needed to display different information on the file system in context. You can ask many questions about your files, for example like what are the file sizes. what files and directories. when were they, etc.

  6. #6
    Join Date
    Apr 2008
    Posts
    3,295

    Re: How to check folder list by ls command

    When a directory contains many files, it is useful to display the results on several columns, we use option C. The command for the same is $ Ls-C. This mode default display of the result of ls in Mac OS X. Perhaps under other Unix or Linux, the basic behavior is different. If you can manage a list of commands for the same then that will be easy.

Similar Threads

  1. Replies: 2
    Last Post: 17-02-2011, 11:21 AM
  2. How to check if the iterator points on an object in a list?
    By MAGALY in forum Software Development
    Replies: 5
    Last Post: 02-03-2010, 07:59 PM
  3. How to check linux folder size ?
    By NICKAN in forum Software Development
    Replies: 2
    Last Post: 19-06-2009, 02:12 PM
  4. How to check name in voter list ?
    By roshanK in forum Off Topic Chat
    Replies: 1
    Last Post: 25-04-2009, 06:42 PM
  5. Can We check the exit command in the batch file
    By Dhruv in forum Software Development
    Replies: 3
    Last Post: 30-12-2008, 11:56 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,711,679,462.89440 seconds with 17 queries