If I open a terminal and type, lets say ll or ls, the terminal just does nothing. It isn't frozen, because I can cancel the command, but it just doesn't return the result of the command. This happens for any terminal I now open.

Certain commands work, others don't:

  • htop, pwd, cd, ps -aux -- all work
  • ll, ls and df -h -- don't work

I have killed all my user programs/terminals I had open and still no joy. I really don't want to restart the machine because it has other programs running under other users.

Is this a known issue/what can I do to fix it?

This is CentOS 7.4

  • 2
    Do you have remote file systems mounted? Certain kinds of fileserver network connection trouble look like commands hanging when accessing the unreachable mountpoint. Commented May 18, 2018 at 9:28
  • 2
    If it's about commands trying to access the disk, then either your disk I/O is stuck, your filesystem is b0rked, or there's just a huge load on disk I/O, making everything seem stuck. If ps aux works, see if you have processes marked with status D (uninterruptible sleep / waiting for I/O).
    – ilkkachu
    Commented May 18, 2018 at 9:28
  • serverfault.com/questions/661548/…
    – Kamaraj
    Commented May 18, 2018 at 9:29
  • @Kamaraj checked those, doesn't seem to be them
    – user997112
    Commented May 18, 2018 at 9:50
  • 2
    Does ls always hang, or only for certain directories? Try eg ls /bin, ls /proc.
    – JigglyNaga
    Commented May 18, 2018 at 9:59

1 Answer 1


It sounds like your home directory is on a NFS share or similar, and your system is having problems accessing it. So commands like ls and df are hanging as they're not able to get information from the remote filesystem.

Make sure the NFS share is actually accessible and your machine has permission to mount the share.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .