RM(1) General Commands Manual RM(1)NAME
rm - remove a file
SYNOPSIS
rm [-ifrRvx] name ...
OPTIONS -i Interactive remove: ask before removing
-f Forced remove: no questions asked
-rR Remove directories and their contents
-v Tell what rm is removing
-x Do not cross device boundaries
EXAMPLES
rm file # Remove file
rm -i *.c # Remove .c files, asking about each
DESCRIPTION
Rm removes one or more files. If a file has no write permission, rm asks for permission (type 'y' or 'n') unless -f is specified. If the
file is a directory, it will be recursively descended and removed if and only if the -R flag is present.
SEE ALSO cp(1), mv(1), rmdir(1), unlink(2), rmdir(2).
RM(1)
Check Out this Related Man Page
RM(1) General Commands Manual RM(1)NAME
rm, rmdir - remove (unlink) files
SYNOPSIS
rm [ -fri ] file ...
rmdir dir ...
DESCRIPTION
Rm removes the entries for one or more files from a directory. If an entry was the last link to the file, the file is destroyed. Removal
of a file requires write permission in its directory, but neither read nor write permission on the file itself.
If a file has no write permission and the standard input is a terminal, its permissions are printed and a line is read from the standard
input. If that line begins with `y' the file is deleted, otherwise the file remains. No questions are asked when the -f (force) option is
given.
If a designated file is a directory, an error comment is printed unless the optional argument -r has been used. In that case, rm recur-
sively deletes the entire contents of the specified directory, and the directory itself.
If the -i (interactive) option is in effect, rm asks whether to delete each file, and, under -r, whether to examine each directory.
Rmdir removes entries for the named directories, which must be empty.
SEE ALSO unlink(2)DIAGNOSTICS
Generally self-explanatory. It is forbidden to remove the file `..' merely to avoid the antisocial consequences of inadvertently doing
something like `rm -r .*'.
RM(1)
Basically i have done created the script below, and it functions ok, it prints the access rights the user has. But i need it to print the group permissions, and other permissions, it would also be helpful if i could print the permissions in numeric form aswell, if it is possible. I have looked in... (50 Replies)
Hi All,
I am not too familiar with Korne script so I need as much help as possible on this ;)
What I want to do is: from the excel file on my computer, I want to take certain field from this xls file and put it in txt or cvs format in specific width column. Then fpt this file into the server. ... (51 Replies)
I'm a newbie so I'm not sure if I'm posting this in the right section... if I didn't, please forgive me :)
I've been looking all over the web for information on system administration. I'd like to become a Unix System Administrator but I want to find some more info about the job. Can someone please... (54 Replies)
Hi All,
Ok, so I'm fairly new to Unix, but would like to think I'm grasping things fairly ok (Well until now ;) ), BUT with this one I'm going in circles ... LOL .. really can't work out why? So sorry for this post if it seems a little "dumb" .. But here goes.
In short I'd like to achieve the... (55 Replies)
Hi,
I need to conver the date format to binary and then subract it by one which will result me an output with yesterdays date and use it..
So that i will use the out and delete all the folders which are of minus one days.i.e if today is 2010-03-18 (this is a folder format at some xyz location).... (59 Replies)
Hello,
How can I know if ORACLE Database is running slow due to Memory or due to processing power ?
I have only Oracle Database running on a P4 with 4GB RAM.
Could anyone suggest any tools which can help me determine exactly if it is memory issue or processor issue. (43 Replies)
Hey everyone,
I'm completely stumped on this. An AIX machine I'm working on is attempting to send email, but the SMTP connection is failing. I have no idea what this code does or if it should even work. If someone could give me a hand, or a suggestion on what else to use, I would appreciate... (54 Replies)
I have a function in bash script to create dir and subdir
function mkdir_stage ( )
{
mkdir -p /webdata/ecif/etl/$Env/$projectname/
mkdir -p /webdata/ecif/etl/$Env/$projectname/archivefiles
mkdir -p /webdata/ecif/etl/$Env/$projectname/dropbox
mkdir -p ... (40 Replies)
Hi All,
There are list of 4-5 .csv files which has 12 columns.In some cases one of the record is split into 2 records. What needs to be done is this split record has to be auto corrected and placed in the csv file.
Eg:
Let us consider sample.csv file and in normal conditions the file would... (40 Replies)
I have extracted a raw data file from a magnetic tape using the dd command
Afterwards, I managed to read the extracted data with Bless HexEditor and I found out that at offset 0x200000 there is a sequence of value which originally was stored in a table.
I would like to extract this data and... (45 Replies)
Here is a chance for Linux users to easily compare Linux CPU info and some meaningless BOGOMIPS. Everyone who is running Linux is welcome to:
cat /proc/cpuinfo
and post the results.
Here is the results for www.unix.com:
processor : 0
vendor_id : AuthenticAMD
cpu family... (182 Replies)
hi all,
i attach a link with what im trying to do automatically via script but i have some questions i need answering please, bear in mind i am really new to bash scripting, the only thing i know how to do is commands in scripts like cd rm tar rsync cp stuff like that
i have mutiple project... (48 Replies)