Use this tag for questions about file management and operations on files.

learn more… | top users | synonyms (1)

5
votes
1answer
155 views

Wrong emblem used for PDFs created by LibreOffice

If I create a test pdf file in a directory, by using something like ls -al > testpdf.pdf the file is shown in Caja 1.4.0 with an understandable emblem that is 'acrobat-like'. If I create a ...
3
votes
1answer
79 views

Compose and pipe a gzipped tar archive in one go

I'm trying to come up with an effective way to create a gzipped archive of various system partitions on Android, piping everything out to stdout so as to be able to encrypt it as it comes across via ...
3
votes
1answer
623 views

Samba set share browsable only for a group

How I can configure samba to set browsable a share for a group only. I wanna hide the share for all other users, if a set browsable to yes all the users can see the share when explore. I don't want ...
2
votes
1answer
154 views

allow user access via ssh to /var/www/

Context: I am creating a gitolite3 hook for a specific repo, which contains some logic and css foo of my website. so what essentailly happens is Content under /var/www/nginx/ looks like: ...
2
votes
1answer
76 views

Equivalent of memmove on files: copy a range of bytes to an earlier position

What is an equivalent of memmove on files with the same input and output file? dd works when I move the file contents towards the right, but not if I move the contents left, since there's no handling ...
2
votes
1answer
146 views

How to copy files *to* a camera?

I'd like to copy a firmware update file to my Canon 7D camera. After it was auto-mounted by thunar + thunar-volman + gvfs-gphoto2 I tried the following: $ cp eos7d-v205-win/7D000205.FIR ...
2
votes
1answer
983 views

Sphinx Search shutting down after `FATAL: accept() failed: Too many open files`

I'm running Sphinx Search Server V2.06 ( the latest stable release ) on an Amazon EC2 with Linux CentOS. In general it is running fine, but the searchd.log is showing this error over and over with ...
1
vote
1answer
48 views

Why won't my system now show the directories and files in /media/sda7?

Summary: Could you tell me please if there is a way to restore the directories and files beneath /media/sda7 that are no longer being shown by my file manager or ls? My system is Debian. Full ...
1
vote
1answer
115 views

Unreadable backup directory on a USB drive

The title pretty much sums it up. I was editing a script I wrote some time ago to automatically backup the contents of my Raspberry Pi SD card, and in the course of editing, I missed a "/", and so ...
1
vote
1answer
91 views

temporarily disabling one's own filesystem write permission

I can't believe there is no simple solution to this (because it seems potentially a very useful feature to me), but so far I couldn't find any. I'd like to be able to (temporarily) turn off my own ...
1
vote
1answer
70 views

What is difference betwen gid and groups

I was wondering about the following behavior: I have three users A, B and C. A creates a folder and changes the group ownership to C's group. mkdir fold chgrp C fold chmod g+rw fold Now I add B to ...
1
vote
1answer
72 views

How to run the file-copy dialog of thunar, or anything similar to use?

I'm trying to create a Send To menu for thunar, which copies a file (%F) to a fixed location. In KDE4 I could use kioclient copy command, but what about other environment? Does thunar has something ...
1
vote
1answer
44 views

Get last changed content since last read

How can I get the last changed content of a file, since its last read? Something more precise that this: tail - <nr >file_1.txt >file_2.txt where file_2.txt gets the last modified ...
1
vote
1answer
81 views

Strange problem with IO or file system or what?

On a SLES 11 SP2 32-bit system I'm seeing a strange problem. It's as if the OS can not open a file from the beginning of the file. Say I have a file that is 200 lines. If I cat or more or vi the ...
0
votes
1answer
29 views

Mount a file collection in a linux environment

I am presently working as a summer intern. My first objective is, given a collection of files, recover and identify the file types present in it. To download sample pseudo-forensics data I have been ...
0
votes
1answer
99 views

How do I create a RAM disk on Linux Mint?

I am running a package that adds data to the end of 140–300 files each time through the process. I'm thinking of moving the process to a RAM disk, and using rsync to copy it back when done. My goal ...
0
votes
1answer
315 views

Transfer files from CentOS VM VirtualBox to Windows host machine

How can I transfer the scripts and text files I've created in my CentOS environment and put it in my host desktop (Windows 7)? I've tried using ftp but it needs to configure the routers to use vsftpd, ...
0
votes
1answer
113 views

I am the owner of a file and I have write access: why can't I save?

I am on OSX 10.9.2 I am locked out of postgres and trying to modify pg_hba.conf to get back in. http://stackoverflow.com/questions/11919275/can-not-enter-and-change-postgresql-pg-hba-conf-file I run ...
0
votes
1answer
68 views

Is it possible to add granular permissions on a folder without installing acl?

I have a folder public_html with several subfolders on Ubuntu 12.04 server. Is it possible to add different permissions on individual subfolders for two new individual users without changing the ...
0
votes
1answer
71 views

Rsync adding a “?” at the beginning of directories

I currently have many of these commands running in a .sh file that looks like this: rsync -avz -e ssh --rsh='ssh -p1337' --bwlimit=10000 root@DestinationIP:/home/backup /home/localbackup rsync -avz ...
-1
votes
1answer
508 views

Setfattr always returns operation not supported

I'm trying to get a script working however I'm having issues with a particular line trying to set file attributes with setfattr. The line in question is ret=os.system('setfattr -n "user.dummy" -v ...
3
votes
0answers
71 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
60 views

How do I recursively set the date created attribute to the date modified attribute on NTFS-3G?

In my first question, I asked how to get the "Date created" field in NTFS-3G. Now, that I know I can get the "Date created", I have started adding files onto my NTFS-3G partition and would like to set ...
2
votes
0answers
52 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 ...
2
votes
0answers
104 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 ...
2
votes
0answers
78 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 ...
2
votes
0answers
28 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
27 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
173 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 ...
1
vote
0answers
21 views

How can I unveal files on my external hard drive?

I copied a big folder (around 110 GB) from my (Mac 10.7.5) computer onto a hard drive (exFAT). It took quite some time and afterwards I even checked that the files were actually there. After more ...
1
vote
0answers
52 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 ...
1
vote
0answers
62 views

Changing file time using touch

Im trying to change the file time of a m#merge the files to a temporary file. mergecap -w "${dir_dcn}"/merge_dcn.pcap "${FILES_dcn[@]}" touch -r "${FILES_dcn[14]}" dcn_file ls -l dcn_file ...
1
vote
0answers
299 views

NFSv4 which “domain” to put in idmapd.conf?

I'm using NFSv4 but suddenly when the NFS Server got rebooted, all the files on the Clients are having nobody ownerships after the Server is booted and started its whatever services again. Then I ...
1
vote
0answers
48 views

Create a fake read only device like file with incrond

I need to generate UUID with uuidgen (not through any function call, but external command, because processes which will read the file cannot call any APIs or external commands directly). My idea is ...
1
vote
0answers
85 views

Map invalid file paths to valid file paths

I am running a program on linux which access an invalid location, say: /home/area/file. I know the valid location is /home/area/something_else/file. The problem is the input file for this program is ...
1
vote
0answers
65 views

Which Unixes support cross-device filesystem links (in particular for rename)?

Just read the following on the FreeBSD man page for the rename syscall: ... [EXDEV] The link named by to and the file named by from are on different logical devices (file systems). Note that ...
1
vote
0answers
64 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 ...
1
vote
0answers
2k views

How to edit context menu in Elementary OS' Files manager (pantheon-files)?

(I am new with Elementary OS and am not sure how to ask questions on their website. So this might be a cross-posting; I cannot find my question posted there.) I have seen here that the entries in the ...
1
vote
0answers
48 views

Reformat terminal output and save to file

I was wondering how to reformat terminal output for logging information. More specifically I would like to reformat the output of the sensors command from the lm-sensors package and write it to a ...
1
vote
0answers
222 views

Apache created files and its permissions for CentOS 6.x

In short, I have an authenticated HTTP-POST that: posts a jpg image (created as 666 apache:www) into /directory1 (777 ftpuser:www) creates /directory2 (created as 666 apache:www) in a 777 ...
0
votes
0answers
32 views

What are some preferred methods to efficiently edit files on a remote Unix server?

I'm looking for a more efficient GUI-based solution to edit root-owned and root-only writable files than using either nano or vim, both of which of course limit your cursor to navigate one character ...
0
votes
0answers
38 views

Storage Formats for Flat File DB

Currently I use a flat file database with find -type f -ls to store information for about 400GB of files. I'd like to store also the md5sum/sha[1|256]sum of the files. Because the files are often ...
0
votes
0answers
58 views

How to mount multiple iSCSI images too loop

I have to mount iscsi images to loop. Yesterday someone with a similar problem asked that already. The difference is, my iscsi image is splitted into 5 parts. ls -la insgesamt 4718592004 -rw-rw-rw- ...
0
votes
0answers
75 views

Strange issue with xml_split in Linux

I am using the code xml_split from https://metacpan.org/pod/distribution/XML-Twig/tools/xml_split/xml_split to split a huge XML file. I am facing a strange issue with this. First, I tried the ...
0
votes
0answers
93 views

Editing metadata with bash

I have a bunch of photos(jpeg, bmp, png) that I have arranged in such a manner that the metadata is in html form in a separate file. I would like create some script to read this html file and edit ...
0
votes
0answers
48 views

Unable to make file system writtable no matter what

I have a flash card SanDisk of a camera which I plug in into my computer: $ lsblk mmcblk0 179:0 0 3.7G 1 disk └─mmcblk0p1 179:1 0 3.7G 1 part $ mount /dev/mmcblk0p1 on ...
0
votes
0answers
17 views

Net-SNMP Application

I don't know if this is the right place to ask this question, but, does anyone knows about Net-SNMP. Is it possible to not truncate the log file whenever snmptrapd is restarted? The logs are being ...
0
votes
0answers
252 views

ETL testing - Unix Commands

As part of etl testing I need to find record count for each different record. Currently we are having some 8 different record types in the flat file. Is there any unix command to find the record ...
0
votes
0answers
46 views

Issues with sharing partitions using NFS

We have 3 servers: Server1, Server2 and Server3, all in the same network. On Server2 I'm sharing a partition, say /part1, to Server 3 using NFS. Here's the /etc/exports on Server2: /part1 Server3(rw) ...
0
votes
0answers
104 views

Real copy to Android device

When i copy files to the Android phone, they are copied to some cache, but they aren't written. I don't like it, because i don't know what is done. I've tried these methods: copying via thunar file ...