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 'Star maps using Blender'
Blender just recently dropped a new version, 4.5(with 5.0 on the horizon), and within it was a new feature for which I immediately thought of a use for. The new feature was a .csv importer for Geometry nodes. Geometry nodes are a method of modelling that uses a node tree to create 3D models which offers more flexibility than straight modeling does. The .csv importer node allows you to bring in a .csv file and use the data in it to control aspects of your model. So for example, if you...
I tried a web search "the loss of programming ", and found an article saying that all aspects of writing, developing, and testing software programs will one day all be handled through artificial intelligence. One must wonder then, who is responsible. WHO is responsible for any problems, bugs, deficiencies, or whatever malfunctions which the programs make their users endure? Things may work wrong however the "wrong" happens. AI needs to fix the problems for the users. Any way to...
Back
Top