The good thing about Dolphin is you can have the real tree following your navigation. Want to go up a few levels, just click once, directly where you want to go next. None of this up, up, up nonsense. Great for snooping in many different folders in quick succession.
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.
alias ..='cd ..' #: up one directory
alias ...='cd ../..' #: up two directories
The first two options (autocd
and cdspell
) have been a lifesaver in fixing my frustrations with the default bash
settings (and even lets me stick with bash, instead of feeling I should move to zsh or any other shell.
I can just type a foldername, tabcomplete it and press enter to go there. It's great.
# == shopts ==
# https://www.gnu.org/software/bash/manual/html_node/The-Shopt-Builtin.html
shopt -s autocd # cd into folder without cd, so 'dotfiles' will cd into the folder
shopt -s cdspell # attempt spelling correcting on folders
shopt -s direxpand # expand a partial dir name
shopt -s checkjobs # stop shell from exit when there's jobs running
shopt -s dirspell # attempt spelling correcting on folders
shopt -s expand_aliases # aliases are expanded
shopt -s histappend # append to the history file, don't overwrite it
shopt -s histreedit # lets your re-edit old executed command
shopt -s histverify # I'm confused.
shopt -s hostcomplete # performs completion when a word contains an '@'
shopt -s cmdhist # save multiple-line command in single history entry
shopt -u lithist # multi-lines are saved with embedded newlines rather than semicolons; explictly unset
shopt -s checkwinsize # update LINES and COLUMNS to fit output
You forgot the pwd after each 'cd'.
ls*
Ls doesn't tell them where they are, just what files exist in their current location.
Yup,
But I want to know if the file I'm looking for is in this directory or I have to cd.. once more
That's when locate piped to grep is your best friend.
Easiest solution, use fish instead of bash! Default fish keybindings will allow you to just type . . or name a directory similar to how you could do with Zoxide.
Also, wait until you find about pushd and popd ;)
Really buried the lede there: pushd
and popd
are what I use instead of cd
most times!
alias cdr='cd /'
Heh
I feel called out. Should definitely make an alias or two that auto CDs me the amount of times I need...
Childhood me with only MS-DOS machines is all feeling nostalgic.
More like cdβ¦ dir cdβ¦ dir cdβ¦
cd .../...
cd .. && ls
!!
!!
!!
!!
What's so surprising?? What did you see in that dir??
Double-bang repeats the previous command. Great if you forget sudo
.
$ rm -rf <folder>
permission denied
$ sudo !!
Haha yeah I was just being silly
cd /some/thing/i/remember
alias cd..='cd ..'
alias cd...='cd ../..'
alias cd....='cd ../../..
alias cd.....='cd ../../../..'
Then forget all that and just use
cd ~
or cd /
No need for ~
- just cd
works as well.
cd ..
!!
!!
!!
.....
cd .