cd ..
pwd
linuxmemes
Hint: :q!
Sister communities:
Community rules (click to expand)
1. Follow the site-wide rules
- Instance-wide TOS: https://legal.lemmy.world/tos/
- Lemmy code of conduct: https://join-lemmy.org/docs/code_of_conduct.html
2. Be civil
- Understand the difference between a joke and an insult.
- Do not harrass or attack users for any reason. This includes using blanket terms, like "every user of thing".
- Don't get baited into back-and-forth insults. We are not animals.
- Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
- Bigotry will not be tolerated.
3. Post Linux-related content
- Including Unix and BSD.
- Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of
sudo
in Windows. - No porn, no politics, no trolling or ragebaiting.
4. No recent reposts
- Everybody uses Arch btw, can't quit Vim, <loves/tolerates/hates> systemd, and wants to interject for a moment. You can stop now.
5. π¬π§ Language/ΡΠ·ΡΠΊ/Sprache
- This is primarily an English-speaking community. π¬π§π¦πΊπΊπΈ
- Comments written in other languages are allowed.
- The substance of a post should be comprehensible for people who only speak English.
- Titles and post bodies written in other languages will be allowed, but only as long as the above rule is observed.
6. (NEW!) Regarding public figures
We all have our opinions, and certain public figures can be divisive. Keep in mind that this is a community for memes and light-hearted fun, not for airing grievances or leveling accusations. - Keep discussions polite and free of disparagement.
- We are never in possession of all of the facts. Defamatory comments will not be tolerated.
- Discussions that get too heated will be locked and offending comments removed. Β
Please report posts and comments that break these rules!
Important: never execute code or follow advice that you don't understand or can't verify, especially here. The word of the day is credibility. This is a meme community -- even the most helpful comments might just be shitposts that can damage your system. Be aware, be smart, don't remove France.
$ cd ..
$ ls
$ cd ..
$ ls
"hmm yes.. everything seems to be in order"
I need a shell/plugin/tool/whatever that always shows me the content of the current dir in a little popup or something.
Anything I do in the shell is like cd this, ls, cd there, ls *, I feel like a have the navigational awareness of a amnesiac goldfish
Sometimes I throw off the linux admin reading my log by throwing in a pwd before going to the next one. Know it's not gonna be in that directory you know?
cd ..
ls
ls -la
cd ..
ls
cd ..
rm -rf /
cd ..
cd ..
history
!1
!1
!1
...
cd ..
!!
!!
!!
cd ./..
cd ../._
Me doing it the worst way > opening up dolphin(file explorer) navigating to the folder then opening terminal there.
Doesnt dolphin has a terminal in built so you can watch files in gui and still use cli?
Tbf it is less key presses since you can generally just recall the last command.
I guess if you enjoy being a virgin that much you can do it that way.
I alias ..
to cd ..
Works for me π€·π»
I do that too!
I also alias ...
to cd ../..
. I'll be honest, I often forget to do it, but in theory it can speed things up.
Or the alias I have set up
β¦..
Ya, this is the way. I use ...
all the time
Once you've typed .. you know if you type more dots it's to go up more dir, so you don't really need two dots for each additional dir.
Yeah so it was five dots for four directories up. I also have
β¦ for 2
And
β¦. for 3
I donβt think I have one for 5. Iβd have to look. I also use autojump and fzf which is very useful.
I kept saying "cd up" in my mind so I just made an alias for cdu
, became a reflex within the next day
The history
of the CTO at a previous job was filled with dc
and sl
because he was a fucking moron. Yes I'm still bitter that he earned way more money than me who had to fix all his mess.
https://www.gnu.org/software/bash/manual/html_node/Bourne-Shell-Builtins.html#index-cd
TIL about $CDPATH may have to populate that!
Why no cd /////// speceficterm if you know how deep it is
Those are supposed to be stars. I'm not fixing this on a phone
cd .. ls cd .. ls cd .. ls cd .. ls
I've used a script that made 'up 4' a thing. Forgot to migrate it though.
Biggest issue I have with custom macros is Iβm logging into like 5 different machines a day. Donβt wanna keep copying over my custom bash files. Prefer built-in commands.
Me too. Would love a tool that allows me to have bells and whistles on my remote machines without having to install extra packages on them.
Yeah, I get that. But I'm traversing my machine a lot while developing, so I want that as hassle free as possible.
Heyy I have that in my .bashrc
Works a charm
Had it in my .zshrc. I should look for it, it was helpful
~$ mkdir -p 1/2/3/4
~$ pushd 1
~/1 ~
1$ pushd 2/3/4
~/1/2/3/4 ~/1 ~
4$ popd
~/1 ~
1$
Depending on where you are, maybe just "cd".
Smh when are you going to upgrade to dvd
Honestly I haven't tried this on Linux yet, but didn't Windows implement this somewhere along the way?...
cd ....
Windows be like
cd ..
ls
grumble grumble
dir
Wanna fix that real quick?
echo @dir %1 %2 %3 %4>%SystemRoot%\System32\ls.bat
I believe, zsh
supports that.
Interesting, I might have to check that out someday.
Though when I write scripts, I'm not a fan of blind folder navigation like that, there's a good reason for the pushd and popd script commands.
Oh yeah, I wouldn't use that for scripts. I wouldn't use zsh
for scripts either.
I mean, I believe, it's generally compatible with bash
, but just throwing a shebang like #!/bin/sh
or #!/bin/bash
into the first line of the script will make it execute with sh
or bash
, even when you run it from zsh
.
I aliased cd
to a custom funtion in my bashrc to do this at one point, but cd ../../../..
is too engrained so I never rembered to use it.
You will probably like zoxide (i am not sure about policy on links here, but here you go https://github.com/ajeetdsouza/zoxide)
Zoxide is nice, or use Yazi so you can actually see where you're going.