Sponsored Content
Top Forums UNIX for Advanced & Expert Users rm & mv command failed due to too many files. Post 302193923 by varungupta on Sunday 11th of May 2008 07:55:35 PM
Old 05-11-2008
Quote:
Originally Posted by videsh77
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 ?
Hey,

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.
VarunSmilie
 

9 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

ACL problem due to mv command used in solaris

Hi All, Is there any way to use mv command and that should apply ACL on the moved files that is already set in distination location This mv command is running in a solaris system. File system is NFS. Problem I am facing : Currently mv command removes ACL from moved files and also it... (0 Replies)
Discussion started by: Tlogine
0 Replies

2. Shell Programming and Scripting

command does not return exit status due to tee

Hi, I am using /bin/sh. I want to display the stdout and stderr on the terminal as well as save it in a file, so I'm using this command. gmake all 2>&1 | tee log But even if gmake fails, it's always giving 0 as exit status, i suppose because of tee. # false 2>&1 | tee Log # echo $? 0... (2 Replies)
Discussion started by: anand_bh
2 Replies

3. Shell Programming and Scripting

command to list files with path & date in a folder

Hi, I need command to display files with full path and date of files where are generated at every 5hrs in a folder. eg: /u01/app/test/orjthsd_1_1 Sun May 10 19:03:26 2009 /u01/app/test/weoiusd_1_1 Sun May 10 21:00:26 2009 thanks saha (3 Replies)
Discussion started by: saha
3 Replies

4. UNIX for Dummies Questions & Answers

need help in fixing the hangup issue due to nohup command

Hi All, I am very new to unix and to this forum.Suggest me a solution in fixing the below issue. Actually ia m executing java program through script. The command is like java pgm & The above cmd runs the java program continuous as a background thread. This script is executed from a... (1 Reply)
Discussion started by: sahan
1 Replies

5. SuSE

Compile failed due to 'out of memory'

Maybe increase swap space will help? How to do it? When I install suse 11 on this box, I remeber it shows the swap space is 2G, I didn't find it anywhere now... (5 Replies)
Discussion started by: fld2007
5 Replies

6. SuSE

shmat failed due to Cannot allocate memory

Hi, My program was running for a whole night. after 12 hours i got an error message "Cannot allocate memory" during the shmat commmand. So can you please let me know what could be the reason? is there any solution? thanks in advance. Regards, Mano (5 Replies)
Discussion started by: ManoharanMani
5 Replies

7. Shell Programming and Scripting

UNIX script abruptly ending due to ssh command

Below UNIX script abruptly ends while reading second line from file. When I comment 'ssh' command the script works as expected. I think I will have to run ssh command in a different process, but haven't got a handle yet as regards to how to do that. Any help in resolving this problem is highly... (1 Reply)
Discussion started by: jeeteshkc
1 Replies

8. Red Hat

Unable to copy files due to many files in directory

I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs.. even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
Discussion started by: before4
2 Replies

9. AIX

AIX 6.1 New SP&TL 6.1.8.0 upgrade failed

Hello Team, Hope all doing well. I have tried to upgrade on of my AIX box too the latest SP and TL, but unfortunately it's got failed(Details are below). Need expert help to fix this. Before up-gradation : root@# oslevel -s 6100-07-01-1141 root@# instfix -i | grep ML All... (3 Replies)
Discussion started by: gowthamakanthan
3 Replies
sccsdiff(1)						      General Commands Manual						       sccsdiff(1)

Name
       sccsdiff - compare and display SCCS delta differences

Syntax
       sccsdiff -rSID1 -rSID2 [-p] [-sn] files

Description
       The  command  compares  two versions of an SCCS file and generates the differences between the two versions.  You can specify any number of
       SCCS files, but arguments apply to all files.

Options
       -p	 Displays output using command.

       -rSID?	 Indicates deltas to be prepared.  Versions are passed to in the order given.

       -sn	 Sets number of lines each segment is to contain.  This is useful when fails due to a high system load.

Diagnostics
       ``file: No differences''
       If the two versions are the same.  Use for explanations.

Files
       temporary files

See Also
       bdiff(1), cmp(1), comm(1), diff(1), diff3(1), diffmk(1), get(1), prs(1), sccs(1), sccshelp(1)
       Guide to the Source Code Control System

																       sccsdiff(1)
All times are GMT -4. The time now is 04:38 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy