Questions tagged [files]
Manipulating files: copying, renaming, searching, analyzing, archiving, etc. For operating on text in a file, see /text-processing. For questions about the Files file manager (formerly Nautilus), see /nautilus.
5,045 questions
0votes
1answer
19views
Moving the Desktop folder (Linux Mint 22.1 Cinnamon)
Recently, I accidentally dragged my "Desktop" folder into another folder (/home/[name]/Programs/). I have been trying to return the Desktop folder to its proper place, /home/[name]/. However,...
1vote
0answers
43views
HDD Write Performance: Pre-allocate vs. Append (Inode Impact?)
When writing a large (10GB) file to an HDD, I'm considering two approaches for writing the data: Pre-allocate: Create a 10GB file upfront and then write data sequentially (e.g., using fallocate on ...
0votes
0answers
47views
Why does there appear to be a discrepancy when trying to programmatically access files associated with different tasks in Linux from kernel space?
As a way to better understand Linux kernel structures, interacting with and pulling information from these (and also getting more experience coding in C), I've been building simple kernel modules to ...
2votes
0answers
57views
find output is different from ls - what could be the reason for this?
On a MacBook, I tried to access one of the system apps, Maps.app which is normally a folder stored in /System/Applications on a separate volume (here mounted as /System/Volumes/Data). What I found odd ...
0votes
1answer
54views
System call to remove content from file or Append it in the middle?
One issue that I ran into when making a custom database, without creating an entire block-chain based filesystem from scratch, is deletion and insertion from/to the middle. It's easy to many a binary ...
-1votes
2answers
53views
Fedora "Files" app gives wrong "Detailed Type" description
I'm on Fedora 41 (Gnome 47). I installed Foxit Reader to read PDFs, didn't like it, and uninstalled it. Now, the Detailed Type description in the Files program for all PDF documents is FoxitReader ...
0votes
1answer
122views
Why are some files not seekable?
I thought all files were seekable, but I’m going through a codebase that handles cases where a file is not seekable. Why is that necessary? In what scenarios would a file be unseekable, and why?
0votes
2answers
67views
Can you safely downgrade/upgrade/remove a package an executable of which is running by APT? [duplicate]
Suppose apt modifies or removes an executable, say a script file, of the package, while the executable is running. Can you rely the running executable will be intact so that the executable runs like ...
0votes
0answers
95views
Installing python 3.12 and pip on Ubuntu 22
Im on Ubnutu 22 and trying to run some python code I developed on my mac which runs python 3.12, Ubuntu 22 comes with python 3.10.x but I cant use that version. Im also using the idle IDE and pip as ...
1vote
1answer
47views
Transparently connect two devices via USB storage for one-way file exchange
Context I want to go paperless with a document scanner which I can operate without having to turn on my PC or use an app on my smartphone. Additionally, I want the scanned documents to end up in my ...
4votes
2answers
422views
Find items by name, and print out if they are files of directories?
Consider the following example: mkdir /tmp/test2 && cd /tmp/test2 mkdir -p aa/{tmp,src} mkdir -p bb/aa/{tmp,src} mkdir -p {dd,ee}/bb touch {dd,ee}/bb/aa tree | awk '{print "# " $0}' ...
0votes
2answers
42views
How can I store some 6 Gb of files in a temp directory that will be automatically deleted within one day and not require a reboot
I would like to store some files in a temp directory that will be automatically deleted within one day and not require a reboot. The files will be about 6 Gigabytes. When should I use /tmp? Use /...
0votes
0answers
67views
inserting colored properties into files
when it comes to the echo -e command, of course you can do a lot with it when it comes to printing color text, especially when it comes to making terminal based UIs, but I have one main question, does ...
0votes
2answers
120views
/run/user/1000/docs saved files cleanup
Debian 12.9 GNOME DE My /run/user/1000/doc folder contains some 150 subdirectories, a significant number of which contain no files and of some which do, selecting the file using Midnight Commander ...
-1votes
1answer
51views
how to find files that bloats a specific partition? [duplicate]
My title may not be the best so I will try to explain it. I am using an old computer (more than 10y) with a ubuntu style distro. It has a lot of independent partitions. I recently had an alert telling ...