Today I learned

So, I thought it might be fun and insightful to have a thread to share something we recently learned. Could be Linux related, or not :slight_smile:

To start things off, I’ll give an example.

I’ve been using Linux since the early 2000s and using vim since the beginning. It was only maybe 4 or 5 years ago that I learned (and having been using vim for 10+ years at that point) that when I wish to save my changes and exit I do not need to do :wq but can instead simply do :x mind = blown :joy:

14 Likes

Nothing mind-blowing today yet, but i’ve learned that Arch (i use 99,99% Arch btw :face_with_monocle:) hosts file lives here:

/etc/hosts

Which is nice to know :yum:

4 Likes

BTW: In that other OS it lives in \windows\system32\drivers\etc which is handy to know if you want one of those machines to hook up to a local webserver. (In current versions you will need to operate a text editor as Administrator in order to edit it.)

4 Likes

Today I learned how to resize (change the width of) the menu in Cinnamon DE.

:partying_face:

2 Likes

I found that out the hard way when Arch put samba v4 in the repositories. I took me roughly eight hours to figure out that Windows has a hosts file also. Boy they sure hid that one well. Under drivers?

Pudge

2 Likes

Some new :uk: term :upside_down_face:

1 Like

Poppycock is, by definition, absolute twaddle. frog_monocle

4 Likes

Sounds a load of tosh to me, mate.

1 Like

Again, not something I learned recently but it was something I learned after using Arch for a long time. If you want to see what files are contained in a certain package installed on your system you can do the command pacman -Ql package_name

If you have a physical package (say something you’ve just built from the AUR) you can instead run pacman -Qpl package_name.tar.xz (or whatever the extension is now, I forgot :joy:)

2 Likes

To see what files are contained in packages not installed on your computer, use pacman -Fly instead. The -y switch is needed to refresh the package database.

Today1 I learnt that @kresimir wrote a really nice list of pacman options worth remembering.


1Actually, I’m lying, I knew that already…

5 Likes

Very nice, but no -Fl :slight_smile:

3 Likes

Basically makes the rest of the list useless if you ask me :stuck_out_tongue:

2 Likes

Just make sure to update directly after running that, because that will refresh the local package database, and if you install something after that, you may end up in the partial update scenario.

If it needs sudo, it is making changes to your computer :wink:

1 Like

Actually, I think -Fl uses the file database which is a different database. I don’t think it creates a partial update risk.

5 Likes

The -F database is not the same as the normal pacman database.
Of course if you update it -Fy then changes are gonna be made. But not to the normal pacman database, just the file database.

EDIT: the databases are in /var/lib/pacman/sync, package databases have .db file ending, files databases… .files.
(correct me if I’m wrong, I did not really check it through)

5 Likes

Today I learned how important mutual respect, keeping a good tone in conversation, the ability of considering an issue from different and someone else’s perspectives and openness towards ideas that might or might nor bear fruit, are for a community whose aim is to thrive and prosper.

13 Likes

I’m constantly learning about Linux and independently of Linux how much more I should learn.

1 Like

i learned to add some pc beep when i login , and learned my wife hate that sound :slight_smile:

5 Likes

i learned to add some pc beep when i login , and learned my wife hate that sound :slight_smile: