Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Alt+. will copy the last argument of your previous command (and the ones before if you use it several times in a row).
mkdir jsjsnshejdjdkfnrbrb
cd <alt+.>
You're welcome. -
I've been using linux for years and never knew these whY DOES NOBODY TALK ABOUT THIS
-
Control+Shift+R in bash lets you search for previously used commands. You're welcome
-
Starjams1048y`!*` will return all arguments of the previous command eg:
$ vi ~/.bash_profile
$ source !*
to edit your .bash_profile and source it -
In the middle of a complex command, and you wish you'd type it in an editor? Ctrl+x Ctrl+e
-
@stable-penguin ^x^y works only for the first occurrence though. To replace all occurrences:
!!:gs/this/that/ -
@Cube189 o believe me this is still very effective against Ubuntu I speak from experience
-
@inpothet late post.. someone else commented and brought it back to life : )
Anyways I think I heard something security related to apt-get? and people should he using apt? I'll double check -- your post made me think about it. Has anyone else heard about it? -
Edit: I found it -- apt does a full upgrade while apt-get could leave you missing security/kernel updates depending on your config. Or that's what my 5 min research said 🙂 I personally use pacman which is one you'll never forget!
-
@stable-penguin I just use apt as it does the same as apt-get but is shorter been using it for about 3 months now and I haven't seen to mush differences
-
@inpothet and it's all shiny with colors and shine and progress bars, shiny. 💎👑🎇🎉🎖️💎
-
@inpothet I'm the unofficial family sys admin, especially since I convinced them all to switch -- they're all on Ubuntu Mate and I feel like I should have know this but actually learned the real reason today. I too was just using apt for the brevity.
If you ever want to pull your hair out or nuke your 'buntu box try doing anything with the ncurses aptitude. I've tried a couple of times and always end up ctrl-c'ing my way out! Maybe it works for some people. -
@inpothet also I think it's fair to say that with the right flags or configs yes they obviously can achieve the same.
Like many *nix tools I think the devil is in the details, and if they're debian details, they were written at least today+=5 yrs ago! (the Debian documentation constant 😝)
I think what I was remembering, and found, was that given a choice, with the defaults, we should prefer apt for security if nothing else. 😇 -
@stable-penguin I never changed a config and so far haven't nukes by box but I will watch out now
Related Rants
-
gururaju53*Now that's what I call a Hacker* MOTHER OF ALL AUTOMATIONS This seems a long post. but you will definitely ...
-
linuxxx65This guy at my last internship. A windows fanboy to the fucking max! He was saying how he'd never use anythi...
-
creedasaurus60Another dev on my team just got a new machine. Before he came in today I made two separate USB installers and ...
"sudo !!" Will rerun your last command with sudo privileges in a Linux environment.
You're welcome.
undefined
linux
life pro tip