In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "Ubuntu ls command stuck how to do", interested friends may wish to take a look. The method introduced in this paper is simple, fast and practical. Let's let Xiaobian take you to learn "Ubuntu ls command stuck how to do"!
Article reprinted from: Ubuntu ls command stuck
Yesterday I asked someone to explore setting PATH environment variable by themselves, today told me that the account is abnormal, the specific performance is that the sftp column cannot display files after bitwise login. Do not understand the principle of some operations, and then appear to be unable to solve their own strange problems, this is a common problem linux novice. In my heart of hearts, I think it's environmental variables, and the problem should be easy to solve.
Therefore, he used his account password to log in to the system and habitually typed the ll command. Unexpectedly, it was stuck! Press ctrl+c kill to drop the command, then try ls and find the same stuck. This phenomenon surprised me, not only because I had never encountered it before, but also because there were very few files in its home directory, and there should not be stuck problems.
The good news is that the cause of the problem has been found: there is a problem with the ls command, so sftp cannot list files. But why does ls get stuck?
type ls See the exact definition of ls, output: ls is alias tols -hF --color=tty'. Then look at the specific path of ls: which ls, the result is/bin/ls`. There was nothing wrong with either of them. Why did he suddenly stop working?
Try native ls: /bin/ls, and the result will be displayed normally; add-l option: /bin/ls -l, and it will also be stuck. Based on the exact form of the aliases ls and ll, it follows that the-F option causes the command card to die. - F is used to show the true identity of the file, so the reason for the ls card death should be that a file or folder is damaged.
Because it has been using gnome desktop environment, there have been problems under gnome before, which can be solved by reinstalling the software package and restarting it. This phenomenon should also be a process out of the question, with the root user to kill its process estimate can be: ps aux| grep username | grep -v | awk '{print $2}' | xargs -n1 kill -9。
Log in again with his account password and the problem is solved.
This problem is solved simply and crudely. To find the file in question, it is recommended to use the strace command. Strace tracks system calls and can quickly locate the file in question.
At this point, I believe that everyone has a deeper understanding of "Ubuntu ls command stuck how to do", may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.