-1

Lady and Gentlemen,

When I want to list out something inside the directory, I do this command ls Then I got the following weird command:

root@venus:~# ls
udo journalctl -u postgresql

The screenshot of the output

What is the meaning of the output? Can anyone explain? My expectation is that, it should list out all directories inside the home directory but instead I got that weird command.

Thank you!

2
  • 2
    That is probably a file called udo journalctl-u Postgres. Typo’s in scripts and commands frequently result in the creation of files with odd names. Don’t attribute to malice what can quite easily be explained by stupidity. – HBruijn Mar 2 '18 at 4:01
  • Thank you so much. I'm very happy reading your answer. Stupidity is what makes people great in the future! – ToiletGuy Mar 2 '18 at 10:23
1

How could such a thing happen?

root@venus:~# ls
udo journalctl -u postgresql

This looks like a single file, named udo journalctl -u postgresql.

My guess is that you will find the content of this file is either s or empty.

root@venus:~# cat udo\ journalctl\ -u\ postgresql

And that this was caused by some permutation of s>udo rather than sudo.

0
0

Check with pwd and ls -la when file was created. Check contents of the file. It looks like file created by script but also check the directory path and contents before removing such file.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.