Find the answer to your Linux question:
Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    No such file or directory???


    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
    SuperMod (Back again) devils casper's Avatar
    Join Date
    Jun 2006
    Chandigarh, India
    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
    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

Posting Permissions

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