Bash: cd producing "ls"-like output upon execution

  • #1
Eclair_de_XII
1,068
90
TL;DR Summary
I was fooling around in the command-line just now. I switched to my Documents folder. Then suddenly, the contents of aforementioned folder got displayed on the terminal. Specifically, all the directories got displayed, but oddly enough, not the one text file I had on there.
I have screenshots, but I'm not willing to share the contents of my Documents folder in a public forum. Is anyone willing to assist me? Additionally, I have "cd" aliased to "HOME=~/Desktop cd" in my ~/.bash_aliases file, if that helps. I might have also had two terminal emulator tabs open while this happened; one tab contained an "ls" alias, and the other had the "cd" command.
 
Last edited:

Answers and Replies

  • #2
DrClaude
Mentor
8,109
4,908
The command alias -p will list the current aliases.
 
  • Informative
Likes FactChecker

Suggested for: Bash: cd producing "ls"-like output upon execution

Replies
9
Views
912
Replies
13
Views
288
  • Last Post
Replies
6
Views
2K
  • Last Post
Replies
14
Views
1K
  • Last Post
Replies
12
Views
431
  • Last Post
Replies
16
Views
834
Replies
19
Views
1K
Replies
1
Views
36
Top