By Panda


2019-06-16 20:04:20 8 Comments

I was just exploring the directory structure on my Mac and there's a directory in my root/home directory, named ls.

[~]$ ls -l .
.
.
drwxr-xr-x   6 XXXX  staff       192 Dec  8  2018 ls
[~/ls]$ pwd
/Users/XXXX/ls

Could someone help me understand what this directory holds and why is in the root?

The ls command should reference the /bin/ls command, I'm guessing. Anyone have any ideas?

1 comments

@jksoegaard 2019-06-16 20:07:39

That ls/ directory is not standard on Mac, so its something you or another user on the Mac have created (either directly, or indirectly by being created by some third party program).

It hasn't got anything to do with the ls command. However, it could reasonably have been made by someone in the middle of a mkdir command thinking that they should just list the directory first - and then erraneously running mkdir ls.

By the way - the directory /Users/xxxx is not called the root directory, but rather the user's home directory.

@Silvio Mayolo 2019-06-17 21:14:15

Sounds about right. I currently have -p and --help directories in my home directory, presumably from commands that were incorrectly piped into mkdir or similar.

Related Questions

Sponsored Content

2 Answered Questions

[SOLVED] Is 500,000 files in my home directory too much

  • 2014-08-06 00:01:32
  • Ken
  • 349 View
  • 0 Score
  • 2 Answer
  • Tags:   filesystem

2 Answered Questions

[SOLVED] Location of the root's home directory in macOS

1 Answered Questions

[SOLVED] Encrypt home directory only

3 Answered Questions

[SOLVED] How to view home directory with Finder

1 Answered Questions

[SOLVED] Putting files outside the user/home folder

  • 2015-08-08 08:36:49
  • egwene sedai
  • 797 View
  • 0 Score
  • 1 Answer
  • Tags:   filesystem

1 Answered Questions

[SOLVED] How to remove '/home' directory?

  • 2015-07-11 04:58:36
  • Frozen Flame
  • 261 View
  • 0 Score
  • 1 Answer
  • Tags:   filesystem symlink

1 Answered Questions

[SOLVED] Installing system files in home directory?

3 Answered Questions

[SOLVED] Unremovable directory

1 Answered Questions

[SOLVED] What is the source directory?

1 Answered Questions

[SOLVED] What is the purpose of "~/.adobe" directory?

  • 2013-09-12 07:56:08
  • Strajk
  • 675 View
  • 0 Score
  • 1 Answer
  • Tags:   mac unix adobe

Sponsored Content