operating_systems

This magazine is from a federated server and may be incomplete. Browse more on the original instance.

datavoid, in How do you recall your most used commands?

Up up up up up up up up up up up up up up up up up up up up up

mreiner,

CTRL+R to search previous commands can help cut down on the number of times you have to scroll up!

MangoKangaroo, in German state gov. ditching Windows for Linux, 30K workers migrating

I’m specifically interested in seeing how the transition from Microsoft Office to LibreOffice goes. My boss has been pondering the possibility of migrating us from Word and Excel to Writer and Calc. My concern, as someone who exclusively uses LibreOffice at home, is those edge-cases where another entity sends us a document that has some weird behavior that might not be properly replicated in LibreOffice. I don’t know much about the German government’s typical document practices, but I think this will be a good case study on the viability of LibreOffice in a more serious production environment.

badmemes,

Also, chances are it will eliminate these edge-case-problems for everybody else in the future.

Since they will be able to add these missig functionalities to LibreOffice for everybody else to use too.

spider, (edited )

.

Ephera, in How do you recall your most used commands?

I’m using Fish, rather than Bash, and it has type-ahead suggestions, which help a lot.

So, I’ll type rsync and then it’ll show inline that I typed rsync -ah --info=progress2 a long time ago. And then I’ll be like, oh wow, this past-me-guy was very smart, I’ll be having the same.

Obviously, this is an imperfect system. If you run another rsync command without these flags, it won’t directly show these flags next time, because it’s not the most recent entry in history.
But it’s rare that I know I’ll want to run a command again in a few months, so it’s still really helpful.
And of course, there is nothing stopping me from creating aliases and scripts as well.

TehPers,

I use nushell, same thing with the suggestions. With nushell, you can also press up/down to traverse through the command history for commands starting with what you typed. For example, you could type ls and press up a bunch to go through ls | where size > 2kb, ls | where type == ‘directory’, etc (if you’ve executed those before).

comicallycluttered,

Same with fish. It actually shows anything if you just put in one part of the command, so you don’t need to specify the exact starting command (in case you might not remember).

Example (which I use regularly):

install, then up (and up and up, and so on), and I see everything I’ve ever used that has install somewhere in it.

So I’ll get results ranging from sudo apt install foo to sudo nala install foo to flatpak install foo.

It’s incredibly helpful.

Kory, in best resources and tips for a newbie to linux?
@Kory@lemmy.ml avatar
DreamyRin,
@DreamyRin@beehaw.org avatar

this looks amazing, thank you!

recursive_recursion, in best resources and tips for a newbie to linux?
@recursive_recursion@programming.dev avatar

For new Linux users a good start would be YouTube vids

after that I’d personally recommend the Arch Linux Wiki as it’s a well regarded and well known encyclopedia for anything you’d need/want to know about most Linux related things

beyond the Arch Linux wiki, you’d probably be looking at the Linux kernel documentation or Gentoo’s docs/wiki

poki,

Solutions found on either of these wikis may work perfectly fine on other distros, but it’s not a guarantee. ‘Seasoned’ users should be able to distinguish this.

recursive_recursion,
@recursive_recursion@programming.dev avatar

yup and for disambiguation purposes,

  • users can ask their questions here or any other related community that they want🤗

there’s also the option to ask users directly for help too✨

RootBeerGuy, in German state gov. ditching Windows for Linux, 30K workers migrating
@RootBeerGuy@discuss.tchncs.de avatar

Yeah, good luck with that. There’s the famous case of Munich (I think it was Munich?) moving their governmental workers from Windows to Linux. After a few years they went back. Unfortunately the average working enduser is still not ready to just use Linux. Especially not if its a Word/Excel/PowerPoint type of job.

Edit: ah, example is in the article.

davehtaylor,

Yeah, just reading the headline, I was like, didn’t this already happen like a decade or so ago?

mozz, in The Berkeley Software Distribution
@mozz@mbin.grits.dev avatar

Path: utzoo!utgpu!watmath!clyde!att!osu-cis ...

Whoa... that takes me back.

MangoKangaroo, in How do you recall your most used commands?

I usually lean on fish autocomplete to remember things for me. Should I write stuff down? Yes. But I’m lazy, so this method is okay. Until I’m on a different machine and end up completely lost.

lnxtx,
@lnxtx@feddit.nl avatar

fish FTW! Write a fragment of the command used before and press the up key <3

MangoKangaroo,

I didn’t even know about arrowing up for partially-entered commands; I’ve just been relying on the first autocomplete that pops up. Thanks for that!

Icarus, (edited ) in How do you recall your most used commands?

I don’t do much with bash since I primarily do windows admin, but I run into the same issue with powershell.

I have a document in VSCode that I store frequently used commands and any kind of notation/documentation I need to take advantage of it in the future. It’s a lot of one or two liners for stuff I know I’m going to forget, like the once a month hyperv cluster update command 😂.

Similarly I’ve added functions to the powershell local and global profiles on my computer/group policy. (contextually similar to bashrc, bash_profile, that load when launching interactive or non interactive shells, as well as user context) That way i can easily execute repeptive commands without having to think!

Basically, I think we all have the same problem and we’ve forgotten more than we know lol

bedrooms, in How do you recall your most used commands?

Me:

  • write it in a StackOverflow answer
  • or in a markdown notebook
  • keep it in zsh history search

but despite all my attempts of keeping records, whenever I need them,

  • ask ChatGPT
GammaGames, in How do you recall your most used commands?

What does your fuck alias do?

And for my answer: If it’s for a specific tool, I make a helper script. I have one for git and docker

Penguincoder,

Reruns the last command with sudo (root) cause I fuck up not remembering to sudo quite often.


<span style="color:#323232;">$ ncdu -rLx /
</span><span style="color:#323232;">Warning: error scanning 
</span><span style="color:#323232;">some directory sizes may not be correct
</span><span style="color:#323232;">
</span>

<span style="color:#323232;">$ fuck                                                                                                                                                                                                     
</span><span style="color:#323232;">sudo ncdu -rLx /                                                                                         
</span><span style="color:#323232;">[sudo] password for 
</span><span style="color:#323232;">
</span>
Bitrot, in How do you recall your most used commands?
@Bitrot@lemmy.sdf.org avatar

I put them in notes in Joplin.

Penguincoder,

I want to like Joplin and considered using it, but I don’t like the electron base it is. And then converting my existing KB to a new format yet again… ugh.

jarfil,

I’ve found Joplin to be “acceptable” to share notes from mobile. When sharing through a shared drive, it saves each note as a separate markdown file, so it technically is greppable plain text, my only gripe is it puts all the files in a single dir. I think it can also import them, or you could add notes directly to the dir.

Over time, I’ve migrated most of my KB to some sort of markdown: Zim Wiki, DokuWiki, Joplin.

I still have some locked up in MediaWiki dumps, probably should spin one up and migrate it all.

furrowsofar, in How do you recall your most used commands?

I make a bash script for the whole process and document everything in Zim Wiki. I would only make an alias if I want to supply options to an existing command. Just how I do it.

Penguincoder,

Yeah I have actual notes and processes in my personal wiki too. I don’t like having to look up that one command that I only ever rarely use, like the I need to know if this webpage is serving a 200 or not… what did I do last time??

furrowsofar,

Zim is a desktop Wiki so no serving issues. The other thing I do is just list my script directory or grep it. If I know I have a script I can often find it that way.

poki, in best resources and tips for a newbie to linux?

First of all, if you’ll be using Bazzite, then become familiar with its documentation. Other sources may not necessarily translate that well to Bazzite due to Fedora, Atomic, OCI and SELinux (to name a few). Though, some other sources may benefit you as long as it doesn’t contradict with Bazzite’s own documentation.

so, what are your tips and tricks for a new linux user?

Bazzite is on Fedora Atomic’s model, hence you should become familiar with the built-in rollback mechanism. Furthermore, it’s possible to keep deployments around. Therefore, if anything, consider utilizing this on your first deployment; just in case.

Pinning said deployment is possible with the sudo ostree admin pin <insert number> command after installation. The number can be deduced through the rpm-ostree status command. The first deployment’s corresponding number is 0 and for each deployment found below you just have to increase the number by one to find its corresponding number. So, the 4th deployment corresponds to the number 3. Btw, you can pin multiple deployments. So there’s no opportunity cost involved. Finally, you can unpin a deployment with -u. So sudo ostree admin pin -u <insert number>

as a final question, what got you into using linux over windows or mac?

I was never a mac user in the first place. As for Windows, a hardware failure was causing more issue on it than on Linux. So that was the direct cause. But the reason I got interested into Linux initially and what has kept my interest are privacy and freedom respectively.

DreamyRin,
@DreamyRin@beehaw.org avatar

hey, sorry this is coming late! thank you for this. I was already looking at their documentation (I have a few times, as well as read their discourse forum) and joined their discord in preparation.

I think this is a super good tip because I have been trying to parse what all I’d need to get familiar with before I touch anything install wise. I knew about the pinning a deployment thing, but I didn’t fully understand how, so thank you for laying it out for me!

poki,

It has been my pleasure!

and joined their discord in preparation.

That will definitely help out a lot. Well thought!

Welcome on board 😉.

BlueEther, in best resources and tips for a newbie to linux?
@BlueEther@no.lastname.nz avatar

A little tongue in cheek and showing my age alittle …

https://no.lastname.nz/pictrs/image/0da44636-fcfe-431a-8282-0bb45d4e8dba.jpeg

but there are some good youtube channels around, then there are resources like Arch’s wiki and for the hard liner there is the Gentoo doc’s

DreamyRin,
@DreamyRin@beehaw.org avatar

thank you for the resources! I think I have VeronicaExplains noted down already, but the other ones are new to me. I’ll give them a look!

  • All
  • Subscribed
  • Moderated
  • Favorites
  • operating_systems@beehaw.org
  • random
  • meta
  • Macbeth
  • All magazines