There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

lemmy.ml

AMDIsOurLord , to programmerhumor in How it goes

Actually I work much better with Coffee, Salary and NO internet. Because I’m bound to spontaneously go research the intricate details of some completely unrelated bullshit if I have access to the internet

tetris11 ,
@tetris11@lemmy.ml avatar

“Oh neat you can directly call operators in R? <web search> Oh wait, these functions are actually lambda’s then. <web search> Wait, I can delay their execution too? <web search> Hang on… is R actually Lisp? <deep web search>”

CanadaPlus ,

Poor man’s fully funded training.

Jolteon ,

You know those links on the right sidebar of stack overflow? Those things are evil, yet awesome.

moritz , to linux in /run/user/1000: What to do with it?

Other people already answered the question, I just want to say that this question was incredibly well asked.

joeldebruijn OP ,

Thanks, definitly positif first time experience with posting also.

barkingspiders , to memes in 😳😳😳

I am too old to tell if this is good photoshop, good generative ai, or a real photo . 🫠

Sekoia ,

AI. Black guy in the background on the right has a white hand.

On the left the arms and legs are in very awkward positions too (the second guy has like… two left legs?)

LittleBorat2 ,

Yes, I also came here to ask if the pope can play.

cobra89 , to memes in Everytime

Fast Car*

possiblylinux127 , to linux in /run/user/1000: What to do with it?

Do not touch that as you will break things. It varies per setup on how it is used but everything /run is virtual

Pantherina , to linux in /run/user/1000: What to do with it?

Flaptak apps installed?

joeldebruijn OP ,

Yep, I learned they have ‘portals’ for file-managing on their own.

Pantherina ,

And they link everything in that directory to access it. So those are not real files

floofloof , to linux in /run/user/1000: What to do with it?

Then I got a lot of duplicate files. For example in subfolders relating to my mp3 player I even discovered my whole NextCloud ‘drive’ is there again: /run/user/1000/doc/by-app/org.strawberrymusicplayer.strawberry/51b78f5c/N

In Linux a file can show up several times in the filesystem without being duplicated. Symbolic links and hard links will cause this to happen, and they’re a normal part of organizing the filesystem. Just because you see a file in several places, that doesn’t mean disk space is wasted with duplicates. There may be only one physical copy of the file, appearing in multiple places. With hard links you need to be especially careful about deleting, since you’ll think you’re deleting one of several duplicates but you’ll in fact delete the only copy of the file.

MrScottyTay , to programmerhumor in How it goes

Fuck coffee, swap that with food or just water or something, then it’s right for me.

Pfnic ,

Yeah I don’t get it either… Everybody at the office seems addicted to coffee and I just am there for the social ritual but almost never drink it when wfh

BananaTrifleViolin , (edited ) to linux in /run/user/1000: What to do with it?

I think others have answered what the folder should do.

FSearch is great, but I wouldn’t index the entire file system. There isn’t much point in indexing things you won’t be using such as all the system files and the representations of hardware processes. It’s a bit like on Windows indexing c:\windows - you just don’t need all that clogging up your search results. But the Linux filesystem encompasses much more so you’d get even more stuff.

On my system I index my home folder (where all your own files will be kept) and my mount points (for me a series of drives I mount under /mnt/). You could also index /media (or variants) as that is where USB drives, and CDs etc would mount to - but I don’t tend to index USB sticks etc.

I can see circumstances where you might want to index other locations depending on how you use fsearch and Linux, but I think for most users it’d just be unnecessary indexing and results.

Edit: I saw someone else mention /etc too. That can be useful if you want to find system config files. They also mentioned /usr/share/docs which contains a lot of the Linux manual/distro docs amongst others. If you want to access that then it’s not a bad idea to index it, although most people are online all the time now on multiple devices so it may be a bit redundant for most users day to day; I tend to just search online documentation.

piefedderatedd , to linux in /run/user/1000: What to do with it?

Nice that you are using FSearch :) I would put more excludes in it when you really want to index / In fact, apart from /home I would not index anything else than /etc /usr/share/doc and maybe /var/run/media or /media (depending on which Linux distribution you are using, for example Arch Linux will use /var/run/media and Ubuntu will use /media for removable devices).

bhamlin , to techsupport in [RMA] What is this lump on my friend's CPU?

It’s a toomah!

forwardvoid , (edited ) to linux in /run/user/1000: What to do with it?

Something to realise when starting with Linux is that everything is a ‘file’. Sockets, processes, input, output etc. That’s very different from Windows and part of why scripting on Linux is so powerful. You can interact with anything.
So some directories are filled with things that aren’t necessarily files but look like it. Someone else posted a whole list, just realise that under those directories/paths shouldn’t be messed with unless you know what it’s for.
Generally when you’re getting used to Linux, /home/$user (aka ~) is where you put personal things. The rest is managed by OS and applications, don’t worry about it.
Edit: spelling

Ramin_HAL9001 , (edited )

@joeldebruijn the /run/user/1000 directory is an in-memory file system of a fairly small size. The operating system creates it for you to store certain things that are for your user account only. The permission settings on this directory forbid any other user on the system (except for “root”) to see what is inside. This makes it safe to store secret information that only you should know.

One typical example of something stored in this directory would be your plain text (unencrypted) password database if you use a password manager. No other user but you (and “root”) can see it, and it is in-memory only so it is not accidentally copied to your persistent memory (HDD or SSD disk drive) where it might be removed and read by hackers if someone steals your computer from you. At the same time, any program running on the system that was launched by you and only you has access to your passwords so you don’t need to remember passwords for everything. (Actually it is a socket to a server containing your unencrypted password database in memory, it is probably not actually a file in that directory.)

Other things that go in this /run/user/1000 directory are socket connections to the desktop bus (allows for things like copy-and-paste or drag-and-drop to work between programs), socket connections to your audio mixer (allows you do things like to listen to music and do video chat at the same time), and a record of what external media devices you have connected to the computer which you are using via GVFS, and so on.

Also, the number 1000 is your user ID number assigned to you by the operating system. If you create other accounts, they will have ID 1001, 1002, and so on, and each of them will have a directory with that number created in the /run/user directory for them when they login.

joeldebruijn OP ,

When I let fsearch index from root, it counted 1.9 million files, which baffled me a lot. Before knowing the things in this thread. A typical windows install can have 50k ~ 100k files, but … 2 million I thought it was insane.

But in this context its something like if LibreOffice Calc had an API and upon start it registers a filesystem with a ‘folder’ for every worksheet and a ‘file’ named A1, A2, B1 … for every cell. Not real I know but a novice way of understanding.

forwardvoid ,

Something like that indeed.
Every active network connection, every process, every piece of hardware and others are in your file system.
Then there’s also the possibility for linking to a file and links take up no space, but can show up like files.
You can use a command like ‘stat’ to get more information about a file (or directory).

MonkderZweite , (edited ) to linux in /run/user/1000: What to do with it?

Only thing i saw here are general answers. /run/user/1000 resp. $XDG_RUNTIME_DIR is a tmpfs (somt. like a ramdisk) created by PAM (pluggable authentication module) on login, 1000 being your user id. It is more restricted in security and size than cache and should be used for small files where quick access or security matters. A common example are sockets.

You can delete it, it will just be regenerated next log in, but your very session will run into trouble, you should log out after (if you don’t just get booted out, that is).

And yeah, like others said; this is not Windows, you don’t have to, and shouldn’t, clean up anything outside your home dir.

nottelling , to linux in /run/user/1000: What to do with it?

You’re going to want to look up things like symlinks, hard links, fuse filesystems, and bind mounts among other concepts. Your “whole directory” and other duplicates are artifacts of how the filesystem and process management works, and simply running fsearch or find over them is going to be confusing if you don’t know what you’re looking at.

One Unix concept that carries over to Linux is that everything is a file. Your shared memory space, process data, device driver interfaces, etc, all of it is accessible somewhere in the same virtual filesystem tree as the actual files.

Because of this, there’s very little reason to have the whole filesystem indexed from root. If you’re worried about space usage, you want to work with packages through the package manager. If you’re worried about system integrity, you’ll want package validators.

joeldebruijn OP ,

Thanks, gives me direction in which way to do research.

FrostyPolicy , to linux in /run/user/1000: What to do with it?
@FrostyPolicy@suppo.fi avatar

I’d say a good rule of thumb for a beginner is not to touch anything outside of their own home directory. Modifying or deleting files in other locations is an easy way to break your system.

CarbonScored ,
@CarbonScored@hexbear.net avatar

Honestly as a power user for 10 years I very, very rarely come across a time it’s a good idea to touch anything outside the home directory.

flashgnash ,

/etc/fstab if you need to setup a new disk

joeldebruijn OP ,

Sound advice, thnx

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • lifeLocal
  • goranko
  • All magazines