Skip to main content

All Questions

Tagged with
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 ...
Long Bùi Hải's user avatar
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 ...
genericuser99's user avatar
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 ...
B''H Bi'ezras -- Boruch Hashem's user avatar
-3votes
2answers
51views

Copying directory into sub directories in linux

I have a directory MAIN with approximately 1200 files ending with .bam. I want to copy these files from MAIN to "/path/to/output/folder" but in sub directories having 50 .bam files each. So ...
Hi Ra's user avatar
0votes
2answers
70views

Linux permissions for a user not logged in sudoers

There is a server to which I have access (login and password). Logging in as this user on this server it is found that my user is not logged into sudoers. No additional information is available, I ...
KukuruzoFirst's user avatar
1vote
2answers
77views

How to loop over a list of extensions to check that files of each type exist?

I have the following directory structure: main_dir/ │ ├── randstr1.randstr2.tar.gz │ ├── randstr3.randstr4.tar.gz │ ├── randstr5.randstr6.tar.gz │ ├── randstr7.ext2 │ └── randstr8.ext3 ...
teeeeee's user avatar
1vote
1answer
65views

Are file permissions copied into the Open File Table?

I have a doubt on what the entry created in the Open File Table upon calling open() contains. The following schema from bytebytego seems quite good to understand the big picture of opening a file, ...
pochopsp's user avatar
0votes
0answers
57views

Opening the xivlauncher application causes the alt key to be held. How do you fix this?

I downloaded an app (xivlauncher - game launcher for Final Fantasy XIV on linux) from the discover store. I have also tried directly from flathub since it is a flatpak. When I open it, it causes my ...
bonkie25's user avatar
0votes
1answer
117views

Why does "find . -type d -empty -mtime +7 -delete" produce "No such file or directory" error messages?

I've found similar questions being answered, where the find command encounters errors deleting files. However, the most similar question with an answer on Stack Exchange is regarding the find -type d -...
Mory's user avatar
0votes
0answers
79views

What are all file metadata available to the linux file system that are always available vs optional?

Context: I know that some programs figure out whether they're being run inside a terminal by running the standard C function isatty(STDOUT_FILENO), or isatty(STDIN_FILENO). I believe also that they ...
user56834's user avatar
0votes
0answers
65views

SGID in File Permissions

the following are two scenarios to let you know how i understand the problem and the SGID: Scenario 1: user A is part of the group G. group G has full privileges to 2 files-its the group owner of ...
winstar345's user avatar
-2votes
1answer
51views

Is there a port of the Windows' REN command for Unix-like operating systems? [duplicate]

I already know the rename command in GNU/Linux. However, it is very complicated and cumbersome because it uses regular expressions. For example, in Windows, I can simply rename files in bulk by typing:...
TranslucentFoxHuman's user avatar
0votes
1answer
31views

Add files only one program can see (without root) [duplicate]

I have a program with hardcoded config files in /etc, which I do not have write permission to, because I have no root (except I can use pacman in sudo). I need a way for the program to see a file ...
Xandaaah's user avatar
0votes
1answer
48views

Unreadable file as root on NTFS HD

I have an NTFS partition on an HD. This partition contains 6 files which I can't read in any way. I have tried reading them as root, doing chmod, chown and mount -o rw,remount ... nothing worked. # ls ...
user2543740's user avatar
1vote
1answer
25kviews

How to clean up a Linux system to free up disk space?

What are some generic ways to free up lots of storage space without deleting personal files? I'm doing a distro upgrade (Debian11->12) and it needs lots of disk space on the root partition / which ...
mYnDstrEAm's user avatar

153050per page
close