02-22-2005
Deletion of File in Unix
Hi there. Thanks for responding. I have Another question if you don't mind. What log can I look at to know what user ID has been used and at what time and date the file was deleted. If possible to know every command issued. Hope to hear from you soon.
Quote:
Originally Posted by DGoubine
Check the user permissions in your directory:
ls -al <dir name>
if you need to deny access to some users, use chmod or chgrp
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
OS: Solaris 8
I deleted a large file (around 13 Gigs) from my system.
But the output of df -k remains the same. The
capacity % is constant. However one strange thing
is happening- My available space is decreasing, my used
space in increasing (The opposite should happen).
This is happening... (2 Replies)
Discussion started by: run_time_error
2 Replies
2. UNIX for Dummies Questions & Answers
I am using unix via telnet ssh and i have a problem
I was testing the server.
I made a directory.
Transfered a file from an ftp to it.
Opened the file with the vi text editor
--This where my problem came.....
I tried deleting the file using rm somefile.htm
when is typed ls i noticed that... (2 Replies)
Discussion started by: shdwsclan
2 Replies
3. Shell Programming and Scripting
I got help in another forum but now I need further help so I figured I'd ask here. I had to write a script to delete certain filenames of certain size. I got this far..
find . -size 110c -name "*testing*" -print | xargs -n 1 rm -i
It finds the correct files, but the prompts to delete are all... (2 Replies)
Discussion started by: NycUnxer
2 Replies
4. Programming
How do I write a C program that will watch a directory for file creation/deletion? Maybe it would receive a signal when someone creates a file?
thanks,
Siegfried (5 Replies)
Discussion started by: siegfried
5 Replies
5. Shell Programming and Scripting
Hi Everyone,
Please help me with this. I have gone through many posts here but couldn't find what I wanted.
I have a file with 79000+ lines and I want to delete lines in a pattern.
I want to delete every 141st line in the file, starting from line 2000 till 50000.
Please help guys.
... (8 Replies)
Discussion started by: max29583
8 Replies
6. Shell Programming and Scripting
I saw many post about this but could not find a specific answer to this question.
i have the following code
find . -depth -name "$FILEEXT" -ctime -30 -exec rm {} \;
when i type ./deletefiles.sh *.txt for example, it will find all the txt files less than 30 days old and delete them.
my... (9 Replies)
Discussion started by: new2learn09
9 Replies
7. Shell Programming and Scripting
I looked into the sticky bit, but I think, if possible, that I would prefer to have the file recreate itself after deletion. The file is several directories deep, and from time to time the top level directory will be trashed. I need the file to recreate after this. Is it possible to perhaps... (13 Replies)
Discussion started by: glev2005
13 Replies
8. Shell Programming and Scripting
Hi Everyone,
There are certain files under a folder 'ABC' and the entries for these files are there in another file(fname) under a different folder 'XYZ'. I want to compare the folder contents(ABC) with
the file(fname) contents and delete the mismatching / non-existing ones from the file,... (4 Replies)
Discussion started by: swasid
4 Replies
9. Shell Programming and Scripting
I have 63,000 files in a directory
I want to move all the 20100219 day files to /target directory
I used
$mv *20100219* /target
too many arguments
Then i used
$find . -name "*.txt"|grep "20100221"|xargs -I '{}' mv {} /target
It will take more than 3 hours to move all the files
... (4 Replies)
Discussion started by: pritish.sas
4 Replies
10. UNIX for Dummies Questions & Answers
Dear All,
It would be really nice, if you could help me to write a script for deletion of list of user( more than 15000 users) stored in a file and sorted by email address( i need deletion of only a particular type of mail address).
Is the any script to write and take the file as input and... (3 Replies)
Discussion started by: Chand
3 Replies
LEARN ABOUT SUNOS
nautilus
nautilus(1) User Commands nautilus(1)
NAME
nautilus - the GNOME File Manager
SYNOPSIS
nautilus [--check] [--geometry=geometry] [--no-default-window] [--no-desktop] [--quit] [location] [gnome-std-options]
DESCRIPTION
The GNOME File Manager is the primary graphical interface to the file system. It provides access to, and manipulation of, files and folders
on both local and remote filesystems by giving a virtual view of them. The File Manager supports multiple view types to allow you to view
files and folders as an arrangement of icons, as a detailed list, or as a number of data-specific views which allow embedded viewing of
text, images and other multi-media.
Nautilus provides the desktop backdrop and its associated icons for launching applications, access to folders, the trash and removeable
media (such as CD-ROMs and zip disks). The trash container is a special view of objects that have been removed from their original loca-
tions but not yet permanently deleted from the system. Emptying the trash will delete these objects permanently.
The side pane of the main window provides additional information about the folder in the current view as well as allowing the user to add
any arbitrary notes; for example, to describe the folder or its contents. A tree view of the filesystem is also available on the side bar,
which can be used to switch between the location of the main view and a history view to show the recently viewed locations.
OPTIONS
The following options are supported:
---check Perform a quick set of self-check tests.
---geometry=geomCreate inital window with given geometry, where geometry is in the following format: widthxheight.
---no-default-wiOnly create windows for explicitly specified locations.
---no-desktop Do not manage the desktop backdrop.
---quit Quit a currently running Nautilus application.
gnome-std-optionStandard options available for use with most GNOME applications. See gnome-std-options(5) for more information.
OPERANDS
The following operands are supported:
location The location to be viewed. This location may be specified as a filesystem directory (for example, /home/guest/Documents),
or by using any of the URI schemes supported by Nautilus (for example, http://www.sun.com or ftp://ftp.gnome.org).
EXAMPLES
Example 1: Launching Nautilus to view a specific location
example% nautilus /home/guest/Images
Example 2: Opening a Nautilus window with a specified width and height and without managing the desktop background
example% nautilus --geometry=450x300 --no-desktop
EXIT STATUS
The following exit values are returned:
0 Application exited successfully
>0 Application exited with failure
FILES
The following files are used by this application:
/usr/bin/nautilus The command-line executable for the GNOME file manager.
~/.nautilus/* The location of user-specific meta-data, including notes, emblems, and background patterns.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWgnome-file-mgr |
+-----------------------------+-----------------------------+
|Interface stability |External |
+-----------------------------+-----------------------------+
SEE ALSO
libgnomevfs-2(3), gnome-std-options(5)
Latest version of the GNOME Desktop User Guide for your platform.
NOTES
Written by Stephen Browne, Sun Microsystems Inc., 2003.
SunOS 5.10 2 Oct 2003 nautilus(1)