Sponsored Content
Top Forums UNIX for Advanced & Expert Users Is there anyway to delete a directory that has more than 200mil files? Post 302119799 by plcyber on Friday 1st of June 2007 12:01:16 AM
Old 06-01-2007
I just executed the command you gave me, am I supposed to see the listing of files of the stdout? The cursor just blink on the screen, how to confirm that the rm is working?
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Delete Some Old files from Particular Directory

Hi Team, I am new to scripting. I want to create a script, which needs to keep only 5 days directories and want to remove the old directory from a particular directory. Can Somebody help me with starting this script. All my directories will be created in the name <YYYYMMDD>. Thanks... (2 Replies)
Discussion started by: siva80_cit
2 Replies

2. UNIX for Dummies Questions & Answers

How to Delete Multi Directory and Files

I have a subdirectory which has many child directories and files in it. How can i delete them through a list (txt, rtf. xls , or any file extension) which is created by me. I can not manual delete one by one because it almost over 300 directory and over 4000 files. Any one know please help me? (5 Replies)
Discussion started by: cthinh
5 Replies

3. Shell Programming and Scripting

delete all but one files in a directory

what`s the script to do that? assuming my text file is "test.txt" (10 Replies)
Discussion started by: finalight
10 Replies

4. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurence of a specific word

Hello, I have several files in a specific directory. A specific string in one file can occur in another files. If this string is in other files. Then all the files in which this string occured should be deleted and only 1 file should remain with the string. Example. file1 ShortName "Blue... (2 Replies)
Discussion started by: premier_de
2 Replies

5. Shell Programming and Scripting

Needs to delete particular date files in a directory

Hi Guys, I need help on deleting particular date files in a directory. I have to delete thousands of files with respect to particular date. Could anyone help on this to delete particular date files at a time? Thanks in Advance (2 Replies)
Discussion started by: teddy2882
2 Replies

6. Shell Programming and Scripting

Delete files in directory using perl

Hello All I am implementing my task in Perl and i found an issue. What i want to do is to remove files from the directory which were made 20 days back using Perl script (9 Replies)
Discussion started by: parthmittal2007
9 Replies

7. UNIX for Dummies Questions & Answers

Cannot delete files and directory

hello i am trying to delete some files and also some directories. However, despite having the required permissions (i m the owner), Permission is being denied. I also tried to delete using find and inode number, but again Permission was denied. :wall: I am new to unix so please dumb down... (8 Replies)
Discussion started by: curiosity
8 Replies

8. Shell Programming and Scripting

Delete all files if another files in the same directory has a matching occurrence of a specific word

he following are the files available in my directory RSK_123_20141113_031500.txt RSK_123_20141113_081500.txt RSK_126_20141113_041500.txt RSK_126_20141113_081800.txt RSK_128_20141113_091600.txt Here, "RSK" is file prefix and 123 is a code name and rest is just timestamp of the file when its... (7 Replies)
Discussion started by: kridhick
7 Replies

9. Shell Programming and Scripting

Script needed to delete to the list of files in a directory based on last created & delete them

Hi My directory structure is as below. dir1, dir2, dir3 I have the list of files to be deleted in the below path as below. /staging/retain_for_2years/Cleanup/log $ ls -lrt total 0 drwxr-xr-x 2 nobody nobody 256 Mar 01 16:15 01-MAR-2015_SPDBS2 drwxr-xr-x 2 root ... (2 Replies)
Discussion started by: prasadn
2 Replies

10. Shell Programming and Scripting

Delete files directory

amigos necesito dejar en un directorio solo los archivos del dia anterio, como puedo hacer eso con una shell Hello. Per our forum rules, all posts must be in English. We do provide translation services for posts from English to a number of languages as a benefit to users. However,... (16 Replies)
Discussion started by: tricampeon81
16 Replies
view(1) 						      General Commands Manual							   view(1)

Name
       view - displays a file using the vi commands

Syntax
       view [-t tag] [-r] [+command] [-l] [-wn] [-x] name...

Description
       The  command  displays a text file.  The command and the command run almost the same code except that in changes to a file are not allowed.
       It is possible to get to the command mode of from within both.

       The following is a list of some of the commands. See the vi Beginner's Reference Card and the "Introduction to Display Editing with vi"	in
       the Supplementary Documents, Volume 1: General User for more details that can be helpful for using

       Screen Control Commands

	    <CTRL/L>	   Reprints current screen.

	    <CTRL/Y>	   Exposes one more line at top of screen.

	    <CTRL/E>	   Exposes one more line at bottom of screen.

       Paging Commands

	    <CTRL/F>	   Pages forward one screen.

	    <CTRL/B>	   Pages back one screen.

	    <CTRL/D>	   Pages down half screen.

	    <CTRL/U>	   Pages up half screen.

       Cursor Positioning Commands

	    j		   Moves cursor down one line, same column.

	    k		   Moves cursor up one line, same column.

	    h		   Moves cursor back one character.

	    l		   Moves cursor forward one character.

	    <RETURN>	   Moves cursor to beginning of next line.

	    0		   Moves cursor to beginning of current line.

	    $		   Moves cursor to end of current line.

	    <SPACE>	   Moves cursor forward one character.

	    nG		   Moves cursor to beginning of line n.  Default is last line of file.

	    /pattern	   Moves cursor forward to next occurrence of pattern.

	    ?pattern	   Moves cursor backward to next occurrence of pattern.

	    n		   Repeats last / or ? pattern search.

       Exiting view

	    ZZ		   Exits

	    :q		   Quits session.

Options
       -t tag	 Specifies  a  list of tag files. The tag files are preceded by a backslash () and are separated by spaces. The tag option should
		 always be the first entry.

       +command  Tells the editor to begin by executing the specified command.	An example would be +/pattern that would search for a pattern.

       -l	 Sets the showmatch and lisp options for viewing LISP code..

       -r	 Retrieves the last saved version of the name'd file in the event of a system crash. If no file is  specified,	a  list  of  saved
		 files is produced.

       -wn	 Sets  the default window size to n.  This option is useful for starting in a small window on dialups.	The -x option is available
		 only if the Encryption layered product is installed.

       -x	 Causes to prompt for a key.  The key is used to encrypt and decrypt the contents of the file.	If the	file  has  been  encrypted
		 with one key, you must use the same key to decrypt the file.

See Also
       edit(1), ex(1), vi(1)
       The Little Gray Book: An ULTRIX Primer
       The Big Gray Book: The Next Step with ULTRIX
       "An Introduction to Display Editing with vi" in the Supplementary Documents, Volume 1: General User

																	   view(1)
All times are GMT -4. The time now is 01:46 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy