So I was messing around in terminal, and when i opened it, I typed cd applications
.
Nothing bad here.
Then, I typed ls -a\
in applications (or maybe /
, I don't know, but it opened the >
thing after for a multi line command.
Not remembering how to exit, I tried to type exit
but instead typed xi
and hit enter on my MAcBook Air. It said that it was doing something, but i tried to quit the terminal seeing it was deleting/restoring something (pls don't question my logic here).
Have no idea what it did, but when i go up in terminal, it says i typed ls -axi
What did this do?
Best Answer
ls -axi
would have performed a regular directory listing, but with more contents (-a
showing dot-files), a horizontal sort (-x
) in columns, and with the inode number present (-i
).From the man page for ls:
-a
-x
-C
-i