Tagged Questions
The files tag has no wiki summary.
2
votes
3answers
76 views
How to delete the oldest directory in a given directory?
I have a backup directory that stores x other directories that require backuping.
I need something that will run before another directory is moved to the backup, that will check if the number of ...
3
votes
1answer
33 views
lstat64 fails on existing directory
After trying for a while to debug a failing move_uploaded_file call, I tried
strace -s 8192 -o strace.log -f /etc/init.d/apache22 restart
This produced, among a lot more output, the following ...
2
votes
3answers
61 views
Is there a way to tell the system to keep a folder to reside in memory?
I'm developing a Java EE web application and I'm trying to speed up the testing process. To do so I was wondering if there is a way to tell the system to keep my build folder in system memory?
0
votes
2answers
26 views
How can I selectively copy files from one directory to another directory?
On Linux, how do I selectively copy most – but not all – files from a directory (dir1) to another directory (dir2)?
I do not want to copy *.c and *.txt files to dir2.
The cp man page ...
2
votes
1answer
31 views
Access to the files beyond Wine's virtual disks
I'm totally new to Linux. I would like to know if the executables run through Wine have any access beyond the virtual drives provided by Wine (e.g. C:/, D:/)?
2
votes
1answer
31 views
Where can I find a reference to the format of the comment field (field 5) of the /etc/passwd file?
In the /etc/passwd file on my system, the "comment" field, field 5, is inconsistent in its contents. I thought that I could extract it to get the full name of the user.
fullname=`awk -F: '$1 == name ...
5
votes
1answer
52 views
suid-root doesn't have effect
A program from apue.
#include "apue.h"
#include <fcntl.h>
int main(int argc, char *argv[])
{
if(argc!=2)
err_quit("usage: a.out <pathname>");
if(access(argv[1], ...
2
votes
1answer
34 views
Immutable bit on AIX?
Under Linux I can:
chattr +i SOMEFILE
so that even root can't modify the SOMEFILE. Are there any similar solutions for AIX?
8
votes
2answers
60 views
lsof - age of file
The *nix command lsof gives you a list of open files. Is anyone aware of a way that would also list how long a particular file has been open? Either by using lsof or any other command. I'm using ...
4
votes
3answers
103 views
Shortcut for fast recursive removal
Sometimes I want to delete large swaths of temporary files recursively, and recycle the directory name without waiting for the command to complete. (For example, if I want to nuke and re-checkout a ...
0
votes
0answers
34 views
I accidently deleted a directory, can i undo it? [closed]
Possible Duplicate:
Recovering deleted files on fedora
I just deleted a directory on my webserver. It was my last command. I realize what i did after i hit enter. I havent done any commands ...
1
vote
2answers
40 views
How do I create a structured list of all the files and directories under a particular directory (recursively)?
I need to have an "image" of a file system without actual contents of the files - just all the names and the structure, so that I can read the file and know what files were stored there and how were ...
3
votes
2answers
35 views
shell howto: save multiple binary data files (jpg) to one file with some additional data and separate again
I have a system with restricted calculational power (fritzbox) and functions (busybox) and an webcam, able to deliver JPG files.
Now I'm looking for for a method (based on shell script) to download ...
1
vote
4answers
57 views
Checking for the existence of files against a list
I have a "command" text file that issues a data file download command on each
line. I send the command file to bash. However, a small percentage of the downloads fail. Here is the algorithm I ...
5
votes
1answer
64 views
Who creates /etc/{group,gshadow,passwd,shadow}-?
In any linux system I have access to (a couple of Archlinuxes, an Ubuntu, a Debian Sid and a Gentoo) there are the following 4 files in /etc/, all ending with a dash:
/etc/group-
/etc/gshadow-
...