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

learn more… | top users | synonyms (1)

2
votes
3answers
200 views

Any programs suitable for making a database over disk-content?

I have quite a lot of external hard-drives, and often have a hard time finding what I'm looking for - not to mention not storing the same file several times on different drives or finding free space ...
0
votes
3answers
2k views

how to delete temp and log files with terminal on vps?

I'm kinda pretty new to this but anyone know how to delete any temp and log files or these kind of files on vps with terminal? I'm runnin debian on the vps. I'm troubled since I can't locate those ...
1
vote
2answers
67 views

Free disk space from a JBoss log file which is still being written to

Is there any locking on the content, imposed by the process if at all the process is using the file. We host a JBoss app server on a RHEL 6.4 OS and due to the disk space constraints we have decided ...
0
votes
2answers
58 views

filename matching pattern

I have a folder of 200 satellite files to process. There are three steps in the process and I want to use a shell script under ubuntu to process them. I am using a for loop. My problem is the ...
0
votes
2answers
86 views

Merging multiple lines selectively?

I have a large file in which a header line is followed by a string of characters at multiple times. eg: file1 VHBFBJBDSBVVFJBSV SVJBVHJBVJ SVKJBVJBNVKVJV file2 dfhgdgffdghgg SVKJBVJBNVKVJV I ...
5
votes
1answer
104 views

Why does “cat ttyUSB0” not produce output?

I connected an infrared receiver to a USB port ... (the last line of dmesg tells device file) $ dmesg [10496.596063] usb 7-2: new full-speed USB device number 2 using uhci_hcd [10496.751112] usb 7-2: ...
5
votes
1answer
147 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
500 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
100 views

Why do deleted files continually reappear?

I've been having a strange issue recently, where I would delete files from a location (i.e. Desktop), and then empty the Trash. However, a day or so later (I'm not sure exactly what triggers it), the ...
2
votes
1answer
36 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
60 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
82 views

Cannot remove file on NTFS partition, event as root

I have a dual boot system, and use a NTFS partition as universal storage between Windows 7 and Ubuntu. Lately, that partition has been throwing CHKDSK prompts on Windows boot, so I thought it was a ...
2
votes
1answer
709 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
50 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
44 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
33 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
75 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
54 views

undelete a just deleted file on ext4 with extundelete

Is there a simple option on extundelete how I can try to undelete a file called /var/tmp/test.iso that I just deleded? (it is not so important that I would start to remount the drive read-only or ...
0
votes
1answer
71 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
41 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
70 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
172 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
45 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
42 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
21 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
162 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
50 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
30 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
74 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
52 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
45 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
1k 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
45 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
16 views

About website extensions.gnome.org how to write local files

I've been using gnome-shell since it was released. through website extensions.gnome.org I can do many to manager my gnome-shell extensions, downloading and installing a new extension for example. from ...
1
vote
0answers
201 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
49 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 ...
0
votes
0answers
13 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
64 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
33 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
103 views

can not delete a file that has been memory mapped until all dirty pages are written

I am memory mapping files from java which wraps the mmap kernel function, it all works fine except that when I close my program down and try to delete the memory mapped file the delete hangs for ages ...
0
votes
0answers
79 views

File size conflict

I am new to UNIX and have a doubt about file size in UNIX. ls -ltr shows me fileA size as 59096. As per my knowledge this is in bytes ,so it is nearly = 0.06 MB However, a script which should zip ...
0
votes
0answers
101 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 ...
-2
votes
0answers
27 views

Alternative checks for ensuring correct file usage

Instead of targeting by file name, which can easily be duplicated or taken and assigned to a different file, what would be the safest (and perhaps most creative) check to ensure the correct file is ...