Use this tag for questions about file management and operations on files.
5
votes
2answers
718 views
Unpack files and directories from an image created by dd?
I created an image of an NTFS partition using dd.
I wonder if I can unload/unpack the files and directories in the image to any partition whose size is larger than the image size, so that I can ...
3
votes
2answers
1k views
How to find out which file is currently written by a process
My situation is that from time to time a specific process (in this case, it's Thunderbird) doesn't react to user input for a minute or so. I found out using iotop that during this time, it writes ...
3
votes
1answer
178 views
gvim -p limit of opened tabs?
When I run :
gvim -p *.xyz
I find that not all files are opened in tabs.
It feels, like a kind of tab limit?
But ! When I try to open unopened with :
:tabnew
it is opened next to previous ...
3
votes
1answer
304 views
How to recover a missing file
I am running ubuntu and last week the system didn't let me alter files as if I had no write permissions. Then on reboot the system did a check of the system which took some time. Then everything went ...
2
votes
4answers
105 views
How to count recursively for the number of files in several directories?
I have a directory, containing a lot of files and directories.
I am trying to get the number of files (and directories) contained recursively in every directory.
I tried the following approach:
for ...
2
votes
3answers
90 views
How does gcc handle file permissions?
The executable files that gcc creates have execution permissions
-rwxrwxr-x
which are different than the permissions that the source file has.
-rw-rw-r--
How does gcc set these permissions ?
2
votes
2answers
71 views
A command line utility to visualize how fast a file is growing?
I want to grok how fast a particular file is growing.
I could do
watch ls -l file
And deduce this information from the rate of change.
Is there something similar that would directly output the ...
2
votes
2answers
51 views
Download copy of file which updates on change
Sorry about the title, I didn't know how to write it - It's kind of confusing.
Ok, I am using my Raspberry Pi (Debian) and I store code on this server in which people have access to. My problem at ...
2
votes
1answer
190 views
How to make difference between .wxm (wxMaxima) and .c files in Linux Mint?
I installed wxMaxima on my laptop a few days ago.
The issue is that files with the extension .wxm, that are used with wxMaxima, are identified as a C source files. Therefore, when I double click on ...
2
votes
4answers
2k views
How can I find all files in a folder that contain a match of a regular expression in the file name?
I'd like to find all of the files in my home folder on Linux (Ubuntu, in this case) that contain a match a particular regular expression. Is there a simple Unix command that I can use in order to do ...
2
votes
2answers
344 views
Remove 50GB oldest files in busybox when used capacity reaches 95%
Ok i have requested a code here but initial i didn't ask to make it busybox compatible. My bad. I'm new to linux and coding.
The code needs to do the following:
Delete 50GB of oldest data (dir ...
2
votes
3answers
561 views
find top 10 latest modified files
How do I get the last 10 files that were modified on my system. I have a system where its disk usage is maxed out I am not sure which files is increasing rapidly.
I have a mysql instance stored on a ...
1
vote
2answers
91 views
Can one copy a relpath in one command?
I find myself doing this often enough that I wonder if there's a standard Unix way to do it:
% mkdir -p /TARGETDIR/relative/path/to
% cp ./relative/path/to/somefile /TARGETDIR/relative/path/to
In ...
1
vote
1answer
343 views
Reading the contents of the file and splitting using ksh
We're using a ksh script for installing one product.
I've another config file, I'd need to read this configuration file from my main script
Content of the Configuration file:
...
1
vote
2answers
129 views
How to know recently updated files
If I run iostat -x 1 I saw ocassionally large 5MB to 10MB writes.
What files are being written?
I want to check the recently created files with size over 5MB for example.
How would I do so?
0
votes
2answers
83 views
file command + how to view all results from file command
I use the file command in order to verify if file (PATH) is text/ascii file or encrypted file
Because file command have allot of results ( small example in example 1 )
I want to get the all ...
0
votes
2answers
918 views
How to write a file at various offsets to a filesystem partition with dd command
Requirement
I want to write a file at various offsets into the partition
Partition /dev/part2 is mounted at /mypart
I tried the command below:
dd if=/dev/urandom of=/mypart/aaa bs=1024 seek=0 ...