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

  • Thread starter Thread starter Eclair_de_XII
  • Start date Start date
  • Tags Tags
    Output
AI Thread Summary
The discussion centers around a user seeking assistance with terminal commands and aliases without sharing sensitive information from their Documents folder. They mention having "cd" aliased to "HOME=~/Desktop cd" in their ~/.bash_aliases file, which could be relevant for troubleshooting. The user also notes the possibility of having two terminal emulator tabs open, one with an "ls" alias and the other executing the "cd" command. The command alias -p is suggested as a way to list current aliases, potentially aiding in resolving the user's issue.
Eclair_de_XII
Messages
1,082
Reaction score
91
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:
Technology news on Phys.org
The command alias -p will list the current aliases.
 
  • Informative
Likes FactChecker
Dear Peeps I have posted a few questions about programing on this sectio of the PF forum. I want to ask you veterans how you folks learn program in assembly and about computer architecture for the x86 family. In addition to finish learning C, I am also reading the book From bits to Gates to C and Beyond. In the book, it uses the mini LC3 assembly language. I also have books on assembly programming and computer architecture. The few famous ones i have are Computer Organization and...
I have a quick questions. I am going through a book on C programming on my own. Afterwards, I plan to go through something call data structures and algorithms on my own also in C. I also need to learn C++, Matlab and for personal interest Haskell. For the two topic of data structures and algorithms, I understand there are standard ones across all programming languages. After learning it through C, what would be the biggest issue when trying to implement the same data...
Back
Top