RM(1) General Commands Manual RM(1)NAME
rm - remove a file
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
rm file # Remove file
rm -i *.c # Remove .c files, asking about each
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).
Check Out this Related Man Page
RMDIR(1) BSD General Commands Manual RMDIR(1)NAME
rmdir -- remove directories
rmdir [-pv] directory ...
The rmdir utility removes the directory entry specified by each directory argument, provided it is empty.
Arguments are processed in the order given. In order to remove both a parent directory and a subdirectory of that parent, the subdirectory
must be specified first so the parent directory is empty when rmdir tries to remove it.
The following option is available:
-p Each directory argument is treated as a pathname of which all components will be removed, if they are empty, starting with the last
most component. (See rm(1) for fully non-discriminant recursive removal.)
-v Be verbose, listing each directory as it is removed.
The rmdir utility exits with one of the following values:
0 Each directory entry specified by a directory operand referred to an empty directory and was removed successfully.
>0 An error occurred.
Remove the directory foobar, if it is empty:
$ rmdir foobar
Remove all directories up to and including cow, stopping at the first non-empty directory (if any):
$ rmdir -p cow/horse/monkey
SEE ALSO rm(1)STANDARDS
The rmdir utility is expected to be IEEE Std 1003.2 (``POSIX.2'') compatible.
A rmdir command appeared in Version 1 AT&T UNIX.
BSD March 15, 2013 BSD
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)
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)
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)
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)
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)
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)
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.
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:
and post the results.
Here is the results for www.unix.com:
processor : 0
vendor_id : AuthenticAMD
cpu family... (182 Replies)
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)