![]() |
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problem with Mail command: exec failed. errno=2. | hawkman2k | UNIX for Dummies Questions & Answers | 1 | 04-29-2008 10:50 AM |
| Fatal error: Command failed for target `build_crypto' | sayed_021 | SUN Solaris | 1 | 02-13-2008 12:16 PM |
| Failed to check status code in "rsh" command | nir_s | Shell Programming and Scripting | 9 | 07-03-2006 10:05 AM |
| Failed to get value from a file using sed command | nir_s | Shell Programming and Scripting | 2 | 03-11-2006 05:53 PM |
| Solaris 9: make: Fatal error:Command failed for target | eldiego | UNIX for Dummies Questions & Answers | 2 | 10-28-2005 04:11 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
rm & mv command failed due to too many files.
In our directory there are too many files, & if I try to execute mv *.gz or rm *.l command it fails, providing error string as - 'arg list too long'. This doesnt happen always, is there any way we know, limit on the rm & mv command so we can take care of this failure in future executions ?
|
|
||||
|
Quote:
I have created 100 directories and deleted them using rm -r *.abc It works. I dont think there is some kind of limitations to remove directories. TO REMOVE DIRECTORIES recursive "-r" is to be used when give rm command. Otherwise please tell how many sub directories you have under the main directory, then i can simulate the situation and could give you some solutions. Thanks. Varun |
|
||||
|
The problem is when the wildcard expands to a string which is larger than the buffer the kernel allocates for this. Like vgersh99 said, read man xargs or How long can the command line be?
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|