Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, I am working on a Solaris server, I met different results using command "ls" and "ls -l". when I used command "ls" to list the files in a directory, ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2

    No such file or directory???


    Hi,

    I am working on a Solaris server, I met different results using command "ls" and "ls -l".

    when I used command "ls" to list the files in a directory, it showed as below

    [w11/rbssw/2.0] ls
    algref hwt2
    bpc hwt3


    it looked the files or directories existing there, but when I used "ls -l" to list, it showed

    [w11/rbssw/2.0] ls -l
    ./hwt2: No such file or directory
    ./hwt3: No such file or directory


    What's the problem with these files?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    What is the output of ls -al command?
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Just Joined!
    Join Date
    Sep 2010
    Posts
    2
    the same problem, but if use "ls -a", then it's ok as "ls", as long as you add option "-l", then it will complain "No such file or directory"

  4. $spacer_open
    $spacer_close

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •