Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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
votes
0answers
4k views

`crontab -e` sometimes fails with “Creation of temporary crontab file failed”

From time to time crontab -e fails on me on a Ubuntu box. It is the same for all users including the root and crontab -eu <user> under the root. Goes like this on a regular basis, a success here ...
4
votes
0answers
71 views

no such file or directory trying to list or remove file in btrfs

I have a file system mounted btrfs. I have one directory in particular, that I can't remove, because it's listed as non-empty. In that directory, there's one file, which I can see the name of, but ...
4
votes
0answers
106 views

Examining which files are dirty or buffered in Linux

$ cat /proc/meminfo | grep Dirty Dirty: 2396 kB How do I view in which files (at least as a mountid:inode pairs) are those 599 dirty pages located? $ cat /proc/meminfo | grep Cached ...
4
votes
0answers
386 views

Find number of duplicate file descriptors on Linux

Given a file descriptor, is there a way in Linux to find out how many other file descriptors refer to the same file description (i.e. how often dup was called, not how often open was called)? I do ...
4
votes
0answers
171 views

Removing duplicate files but ignoring certain lines (e.g. embedded timestamp)

I have a bunch of gzipped text files. I am trying to remove duplicate files (using fdupes) but the problem is these files contain a line that has their timestamp in them, and the files are identical ...
4
votes
0answers
265 views

How does fsnotify setting affect system performance?

Occasionally a software package I install complains that the default fsnotify setting is far too low for decent performance. Intellij IDEA or crashplan are two examples. They suggest using fsnotify ...
3
votes
0answers
79 views

Make read-only directory accessible to other users

I have mounted a read-only share via gvfs-mount to /run/user/60373/gvfs/smb-share. I would like to make other users read this share. The problem is that I can't set the permissions recursively as I ...
3
votes
0answers
77 views

Replace files with specific last modified date with files (or dates) from archive

I had a hard drive nearing capacity (mostly /home). I installed a new larger drive, copied /home over to it and went on with my life. This was on 5/17/2013. I know it was on 5/17/2013 because I ...
3
votes
0answers
76 views

Undeleteable 33GiB file on a 4GiB USB-Stick. fsck says “clean”, Error: “Operation not permitted”

I successfully installed a live debian 8.x on a 4G thumb-drive, like many times before. However, this time there is a 33GiB tee.1.gz file in /usr/share/man/man1/, which is much larger than a normal ...
3
votes
0answers
486 views

Higher-level wrapper for entr or inotifywait

I'm looking for a way to rerun a specific command as soon as any of the files in a subdirectory (perhaps minus selected excludes) changes. Use case I'm working on a project that is self-contained in ...
3
votes
0answers
144 views

Can Linux be configured to wait for USB storage to be reattached instead of returning I/O error

If a usb_storage device is physically detached from an Ubuntu machine while it is still mounted, any attempt to access the file system will produce an I/O error. Is there some way to configure Linux ...
2
votes
0answers
35 views

Automatic symlink to latest folder

Is there a way in Linux to automatically maintain a symlink to the latest version of a file/folder in a certain location? My use case: I generate datasets with unique job names, then write them to a ...
2
votes
0answers
22 views

How to split big file into multiple files and then access it as single file

Lets say I have one huge file. Backups using rsync take really long time, even when I change only small parts of it. Is it possible to split this file into multiple files, and then "mount" it as ...
2
votes
0answers
56 views

AIX : NOFOLLOW_LINKS is not supported on this platform

I have an AIX 7.2 machine. I am trying to run a Java program on it. It gives me this error: NOFOLLOW_LINKS is not supported on this platform. It is because I am using this call in the program: Files....
2
votes
0answers
55 views

Given a pathname and a symlink to a directory in the pathname, is there a command which can return an equivalent pathname making use of the symlink?

Sometimes I have a long pathname, and want to shorten it by some precreated symlink to a directory in the pathname. Specifically, given a pathname /path/to/file, and a symbolic link /symlink to a ...
2
votes
0answers
159 views

How to edit a 100GB file in Linux?

I have a file that has several times my RAM capacity and I need to edit it, search for some expressions, etc. I've tried Vim (with LargeFiles plugin and CTRL + C trick), joe, shed all without luck. ...
2
votes
0answers
78 views

Linux access windows share without loading to RAM

I have a laptop running an Arch-based Linux system and frequently need to access a windows share at my workplace. This is really annoying since it takes ages to load. Particularly, one folder is ...
2
votes
0answers
112 views

how to output html to a file with xmllint?

How do I get xmllint to output to a file? thufir@dur:~/xmllint$ thufir@dur:~/xmllint$ xmllint --html http://www.skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450 --xpath '//div[@class = "tides"]' - ...
2
votes
0answers
20 views

Macs unable to open shared files hosted on FreeNas because of temp files

We have a nfs share server (running FreeNas 11.2) mounted trough automount on which we store multiple *.xls files. Since a few days, two MacBooks refuse to open those files with the following error ...
2
votes
0answers
119 views

Maintaining file's SELinux labels when copying them from one directory into another

Default behavior for copying files or sub-dirs from one directory to another is that the copied objects do not maintain their SELinux type (domain) which is opposite to objects which were moved. ...
2
votes
0answers
61 views

Do the filesystem under Linux enforce serialization, which means only one change to the filesystem actually happens at any given time?

https://unix.stackexchange.com/a/12818/674 says Lock files are used by programs to ensure two (well-behaved) separate instances of a program, which may be running concurrently on one system, ...
2
votes
0answers
30 views

How can I detect when my laptop is going to sleep

I'm using fedora 28. I have a series of programs that I'm launching based off lock and unlock times, but I wanted these programs to adjust their behavior if sleep is detected. So I want to create ...
2
votes
0answers
77 views

test fails to find files with processed path

I have backup of /home/kuba/mp3 on external usb hard drive /media/kuba/JCUBIC/mp3 and I move some files to different directories on usb drive and now I want to sync the files from usb to my home ...
2
votes
0answers
63 views

Password requirement for all files with a specified extension

I'd like to be able to modify my OS so that that when I go to open any file that has the extension .zzzz (an arbitrary extension that I created a few files with, example: randomText.zzzz), I would be ...
2
votes
0answers
58 views

“Union” based file manager

I would like to be able to perform actions on files in different locations within a common window/container. Let's say I have the following directory structure: └── DCIM    ├── browser-photos    │ ...
2
votes
0answers
46 views

Is there a way to give different permissions to different processes that are called from the same user?

I want to be able to have a r,w,x type permission given to specific processes and not to users. Any document I find shows that processes get the same permissions as the user calling it, but I want ...
2
votes
0answers
46 views

Finding files contained in particular block group

How do I see/list what files have blocks in a particular block group? I'm looking at a small disk image with an ext3 file system. Can I use debugfs, and if so, how?
2
votes
0answers
430 views

How to use lockf on command line

I want to lock and unlock a file that resides in NFS share so I've found the reliable way is to go with lockf how can I use that in command line for flock I could do 'flock -s number' how can I do ...
2
votes
0answers
30 views

Opensourced File Archive system with a web ui?

I am looking for a free/opensourced archive utility for a file server. Basically, I am looking for an easy way to manage archives of hundreds of videos, pictures, audio files, documents, meta info, ...
2
votes
0answers
66 views

Reason for security software to not scan directories with more than 10,000 resources in them?

We have a security software on Linux which scans for exploits in files that exist in directories on the server (such as if websites had hack scripts uploaded to them). It defaults to a limit of 10,...
2
votes
0answers
84 views

Set default program for one specific file in Nemo

There's a lot of questions on how to change the default program for a specific file extension, but I want to know if I can change the default program for a specific file. Reason: Some PDFs don't ...
2
votes
0answers
232 views

Unable to insert records on sqlite on a Linux environment

I tested a simple Php program using Sqlite3 instead of mySQL on my own computer and it works fine. What the program does is simple insert of record into a certain table. Now, when I try to do that on ...
2
votes
0answers
132 views

How to set EMIRGE program to write files with desired permission

How can I get the EMIRGE program to read certain files? I am using Linux Mint (17.1). I have downloaded a program call EMIRGE, which is supposed to take fastq files (a text file format for ...
2
votes
0answers
656 views

I can't delete a file from EFI System Partition

I'm trying to delete a file since I installed rEFInd instead or Grub, I want to remove Grub or just remove "grubx64.efi" from my ESP, to make it disappear in the rEFInd boot screen. I can mount my ...
2
votes
0answers
259 views

How to add custom script in Elementary OS file manager context menu?

do you know if there is possibility to add custom script as element in context menu? I've seen similar threads related adding "open folder as root" and "make executable/run" entries, but still I'm not ...
2
votes
0answers
126 views

Random file showing up in various directories. How to trace its creator?

I am finding a 0 byte file named ^- (that is a caret and a dash) in various directories on my file system. I use zsh with oh-my-zsh and I am pretty sure something in there is creating it but I really ...
2
votes
0answers
4k views

File limits getrlimit(RLIMIT_NOFILE) failed

(32-bit system) Posted a Q/A earlier regarding Chrome crashing because of exhausted limit in open files. Chrome has since run more smooth, (after increasing limit), but still crashes from time to ...
2
votes
0answers
313 views

ls does not show a hidden file (OS X)

I am using lsof to view the list of open files. One such file that it displays open is : Google 3864 malaykeshav 46u REG 1,1 470455334 32578671 /Users/malaykeshav/Library/...
2
votes
0answers
86 views

Image set compression

Is there a good open source (not exclusive to Linux) for compression of a set of similar images? I have thousands of documents scanned but I do not access them often. The documents are forms, with ...
2
votes
0answers
539 views

How do I make get-iplayer produce watchable quality without huge filesize?

Summary findings: I'm using get-iplayer v2.82. The files I produce on hard drive are all mp4. I've discovered the following (downloading same TV program in both cases): Using --modes=flashstd and --...
2
votes
0answers
43 views

File viewer (not manager) with dual pane

I have multiple papers, in multiple directories. let us call the papers A, B, C, D... and I have to write reports often, where I have to answer questions like Q1, Q2, Q3, Q4... Now, what often ...
2
votes
0answers
212 views

How can I make Krusader show real size of symlinked files?

In the "size" column in Krusader, there is a link's size noted, instead of the size of the actual file. This is the same as what ls -l shows (the full address of the target file, e.g. 64 B instead of ...
2
votes
0answers
270 views

Disk filename corruption

Using QNX unix filesystem. The files once written with good file names in a good directory and partition get corrupted in their filenames. Some of the files remain in good shape in the same directory....
1
vote
0answers
34 views

Curl download speed restricted when down/uploading from stdin/stdout

I'm running 2 curl commands where one downloads all the data into stdout/in until the stack is filled and another uploading whatever is in it out but it seems like the speed is restricted. For the ...
1
vote
0answers
39 views

Shell redirection - follow name, not a descriptor

I have a shell script that is run in the background and the only thing it does is run 1 command, STDOUT of which is being appended to a file. my_blocking_command >> my_file I want to stop the ...
1
vote
0answers
31 views

Zip64 Extra Information Field

While trying to analyze zip files, one section Im a little confused by is the Zip64 Extra Information Field. It is expected to be generated when specific fields can't fit in the file header(Central ...
1
vote
0answers
51 views

Installing software in home partition instead of root partition?

/home (the rest) / (100GiB) /swap (6GiB) /boot (200MiB there are vital basic operating system packages like the coreutils and binutils, then there's the "optional" like virtualbox or okular thing ...
1
vote
0answers
17 views

How to see the file revisions in Tux3 and NILFS?

Tux3 and NilFS are file systems made for file history/revisions. How can I see these revisions? On Windows, there is a file history manager and Shadow Copies (enabled by default only on Windows 7 ...
1
vote
0answers
21 views

Linux Mint cannot access USB drive from an admin accout. Drive is detected and works fine in other accounts on the same machine

I have a weird problem on a Linux Mint 18.3 Serena Mate install. USB drives (I have tried a few) are detected and appear on the desktop but cannot be accessed in this account. The account has admin ...
1
vote
0answers
82 views

Refreshing SMART data on my external HDD boosts slow transfer speed

I'm working on Linux Mint 18.3, and I have a Seagate Backup Plus 2TB external HDD. I've had a few minor problems with the drive which I was able to fix, but I've hit a really problematic snag. ...