But what happens when your chief exec has a legitimate file called "core" in his or her home directory that contains their core budget proposals for the year?
Far safer to do something like....
You might need to change the awk depending on your OS
If you keep seeing a core file dumped in the same place time after time (and you can't fix the application thats generating itself directly), just
This will truncate the core file to 0 bytes, and then make it read only - now when the core dumps, it won't be able to overwrite this file and the core file will remain at 0 bytes. Sloppy but it works...
But what happens when your chief exec has a legitimate file called "core" in his or her home directory that contains their core budget proposals for the year?
That's hilarious ...... though I guess this will not occur because they only use Windows, I think, and this doesn't work on Windows.
That's all for the joke.
I will not use this command myself, as I have disabled all core dumps on all machines I work on. I seldom use dangerous automatic commands like this but if I am to use one I will always confirm the list of files to be deleted with a
find /somedir -type f -name 'core'
first and verify the files listed before I will actually run that command, for safety sake.
But what happens when your chief exec has a legitimate file called "core" in his or her home directory that contains their core budget proposals for the year?
For one thing, the chief exec had better not make an error that causes a coredump.
Hi All,
I have a folder name lets say path/to/folder/CUSTOMER and under this i have several folders and each of these subfolder have serveral subfolders and so on and at some point i will have a folder name called "FTP_FILES" .
I need to search for these folders named "FTP_FILES and then... (10 Replies)
Hi Forum,
I am using the below command to find files older than x days in a directory excluding subdirectories. From the previous forums I got to know that prune command helps us not to descend in subdirectories. Though I am using it here, not getting the desired result.
cd $dir... (8 Replies)
Question:
How to search & list subdirectories with the given file name?
For example:
The directory structure looks like;
/Builds/DEV/Build_RL01/DDL/
a_tbl_cre.sql
......
/Builds/DEV/Build_RL01/DML/
a_upd.sql
....
....
Requirements:
1. I need to find subdirectory DML which is... (0 Replies)
I have 2 directories a/ and b/,
they have different subdirectories, how to diff with missing file, or missing subdirectory
and if i have in a/ directory "a/ACD/DEF" DEF is a file, but in b/ directory "b/ACD/DEF is a SUBDIRECTORY, how to diff it, thanks
my solution for directories,
... (7 Replies)
Hello,
how can I search a directory AND all its subdirectories for a file containing a certain string?
My directories contain too many sql-files and I want to know whcih one of them write into the table "customer"?
Can anyone help me?
Thanks in advance (1 Reply)
Hi! I want to find files located in subdirectories. I have tried
ls -R | grep myfile
but this won't tell me where the file is, only that it is there.
Any one have a better idea?
Thanks,
--Euclid (3 Replies)
Hello my friends,
I need to write a simple shell bad file :D that search and delete a file it's name 'Microsoft.txt' in the current directory and its subdirectories?
So can you help to guide me how i can write this shell, Just give me the beginning :o thank you. (1 Reply)
Hi,
How to loop through all the subdirectories in a directory, merge the files present in it to a single file in that subdirectory itself and remove the original files?
Please advise. (5 Replies)