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
Thread 'Is this public key encryption?'
I've tried to intuit public key encryption but never quite managed. But this seems to wrap it up in a bow. This seems to be a very elegant way of transmitting a message publicly that only the sender and receiver can decipher. Is this how PKE works? No, it cant be. In the above case, the requester knows the target's "secret" key - because they have his ID, and therefore knows his birthdate.
Thread 'Project Documentation'
Trying to package up a small bank account manager project that I have been tempering on for a while. One that is certainly worth something to me. Although I have created methods to whip up quick documents with all fields and properties. I would like something better to reference in order to express the mechanical functions. It is unclear to me about any standardized format for code documentation that exists. I have tried object orientated diagrams with shapes to try and express the...
Back
Top