Find the answer to your Linux question:
Results 1 to 6 of 6
I got on my linux today and find that typing 'ls' no longer outputs anything to the screen. I was playing around with $PATH the other day and think it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jun 2008
    Posts
    21

    'ls' broken nothing comes out


    I got on my linux today and find that typing 'ls' no longer outputs anything to the screen.
    I was playing around with $PATH the other day and think it may be involved. However, I do not get any errors that 'ls' is not found.

    When I type $PATH I get:
    /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:.:No such file or directory
    please help,

  2. #2
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    Try
    Code:
    echo $PATH
    then try
    Code:
    which ls
    Tell us the results.

    By the way, are you really sure that there's something in the directory you're trying to list? Have you tried
    Code:
    ls -a
    ?
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  3. #3
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,042
    try
    Code:
    /bin/ls
    also try
    Code:
    alias
    Ed: also does
    Code:
    sudo ls
    or
    Code:
    su -
    ls
    work ?

  4. #4
    Just Joined!
    Join Date
    Jun 2008
    Posts
    21

    k

    k,
    echo $PATH gives:
    /usr/local/bin:/usr/bin:/bin:/usr/bin/X11

    which ls gives:
    usr/bin/ls

    ls -a gives nothing, but I am sure there is something in the directory, because I have ftp'd in to run 'ls' and sadly, I am working today, getting around by typing 'vi .' to see what is in the current working directory....

    Jonathan,
    /bin/ls returns nothing

    alias give:
    alias d= 'dir'
    alias dir='/bin/ls $LS_OPTIONS --format=vertical'
    alias ls='/bin/ls $LS_OPTIONS'
    alias v='vdir'
    alias vdir='/bin/ls $LS_OPTIONS --format=long'

    sudo ls returns nothing (I am logged in as root)

    su -ls returns nothing

    thanks for the feedback

  5. #5
    Linux Guru smolloy's Avatar
    Join Date
    Apr 2005
    Location
    CA, but from N.Ireland
    Posts
    2,414
    What happens with
    Code:
    /usr/bin/ls
    ?
    Registered Linux user #388328 || Registered LFS user #15880
    AMD 64 X2 4600+ :: 2X1GB DDR2 800 :: GeForce 9400 GT 512MB :: ASUS M2N32 Deluxe :: 4X250GB SATAII
    Need instant help? Try us on IRC -- #linuxforums on freenode

  6. #6
    Just Joined!
    Join Date
    Jun 2008
    Posts
    21
    hi,
    /usr/bin/ls
    outputs nothing...

Posting Permissions

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