01-20-2020
So, you ran rm -rf is what directory, on your Linux RedHat system, exactly?
Also, what filesystem are you using? ext2 ?
10 More Discussions You Might Find Interesting
1. Solaris
I'm new in Solaris server
After the system support reboot the Solaris server, all the files in /tmp has been removed, is that normal under Solaris or under different init level will get different result?
which init level will do that? (5 Replies)
Discussion started by: yesthomas
5 Replies
2. Shell Programming and Scripting
Please help. Here is my problem. I have 9000 lines in file a and 500,000 lines in file b. For each line in file a I need to search file b and remove that line. I am currently using the grep -v command and loading the output into a new file. However, because of the size of file b this takes an... (4 Replies)
Discussion started by: mjs3221
4 Replies
3. UNIX for Dummies Questions & Answers
Hi,
How do we remove an extra new line in a file. New line in ascii is called chr(10). Suppose we have a file as:
12345
98765
------
------
From the above i represented new line with dashed lines. Basically i have 2 new lines with white space at the end of the file. How do i removes... (1 Reply)
Discussion started by: sandeep_1105
1 Replies
4. UNIX for Dummies Questions & Answers
Hi Unix gurus,
Maybe it is too much to ask for but please take a moment and help me out. A very humble request to you gurus. I'm new to Unix and I have started learning Unix. I have this project which is way to advanced for me.
File format: CSV file
File has four columns with no header... (8 Replies)
Discussion started by: arvindosu
8 Replies
5. Linux
Hi Team,
I have deleted a file accidentally by using rm command. I am not the root(admin) user. Can you please let me know how to get that .tex file? (2 Replies)
Discussion started by: darling
2 Replies
6. Red Hat
For Suppose, I have installed a package having files file1, file2 and file3. After installation, I removed the file "file3".
But "rpm -qf file3" is giving the package name, even file3 was not there. And also "rpm -ql package" is also displaying all 3 files.
How can i update rpm database about... (6 Replies)
Discussion started by: snreddy_gopu
6 Replies
7. Programming
The fwrite function call is not returning error, when the file it writes to is removed, please advise on how to find if the file already opened and being written by a program is removed manually or by some other process.
please see the code below,
#include<stdio.h>
#include<stdlib.h>
... (3 Replies)
Discussion started by: Kesavan
3 Replies
8. Shell Programming and Scripting
Below is a flowchart of a program. Most everything works as expected, but there are a couple of issues that I need some expert help on. The check function was setup initially for a single user input. The input has been modified to allow for multiple inputs, so the code below does not work. My... (15 Replies)
Discussion started by: cmccabe
15 Replies
9. UNIX for Beginners Questions & Answers
The input file is this:
a|b|c|d
x|y|z|n|||||||||
p|q|r|s|||
g|h|i|
w|e|r||
Now as per requirement , each row should have only 3 delimiter.
Now the 2nd row & last row has an extra delimiter, How to remove that ? In some large file having 100K data , there can be 100 such rows having... (4 Replies)
Discussion started by: ikdKunal
4 Replies
10. UNIX for Beginners Questions & Answers
Hi Folks,
I have a requirement of file management on different servers.
Source Server is SERVER-A.
Two servers will fetch files from SERVER-A: SERVER1 and SERVER2.
4th SERVER is SERVER-B, It will fetch files from SERVER1. If SERVER1 goes DOWN, SERVER-B will fetch pending files from... (2 Replies)
Discussion started by: Raza Ali
2 Replies
GFRM(1) GFRM(1)
NAME
gfrm - remove Gfarm files, directories, or file replicas
SYNOPSIS
gfrm [ -frRnqv ] [ -I file-section ] [ -h filesystem-node ] [ -D domain-name ] [ -H hostfile ] [ -N num-of-replicas ] [ -j num-of-threads ]
gfarm-URL ...
DESCRIPTION
gfrm removes each specified file. It does not remove directories unless the -r or -R option is specified. '.' or '..' cannot be removed.
When the -I option is specified, gfrm removes the specified file section. File section is an architecture name for executable files, or a
fragment index for a regular file.
With the -h, -D, or -H option, gfrm removes file replicas of each specified file or file section on the specified filesystem node(s). All
file replicas of a file cannot be removed, unless the -f option is specified.
OPTIONS
-f Even when all file replicas are specified by the -h, -D, or -H option, forcibly deletes all the file replica. In this case, the
specified file will be deleted.
-j num-of-threads
Specifies the number of threads to delete file replicas simultaneously. This option is only available when gfrm is compiled by an
OpenMP C compiler.
-n Prints file names to be deleted, but does not delete them.
-q Does not print any verbose message.
-r, -R Removes all entries under the directories specified by the command-line argument recursively.
-v Prints verbose messages.
-h filesystem-node
Specifies a filesystem node from which file replicas will be removed. With the -I option, a file replica of the specified file sec-
tion will be removed.
-D domain-name
Specifies a domain name of filesystem nodes on which file replicas will be removed. With the -I option, a file replica of the spec-
ified file section will be removed.
-H hostfile
Specifies a hostfile that lists filesystem nodes on which file replicas will be removed. With the -I option, a file replica of the
specified file section will be removed.
if ``-'' is specified, standard input is used to read the host list.
-I file-section
Specifies the file section to be removed. File section is an architecture name, such as sparc-sun-solaris8, for executable files,
and a fragment index for regular files.
-N num-of-replicas
Specifies the maximum number of file replicas. If files has more number of file replicas than specified, reduce the number of file
replicas.
-? Displays a list of command options.
Gfarm 13 November 2006 GFRM(1)