01-18-2009
Alright.. you need to make sure that you put that in your .bash_profile file, then login to the shell again.
You can't name the function restore() as that is an actual command in *nix (not sure which versions it is actually in), you can type: man restore
Name it restfile or undelete or something, I am not sure, but do not use restore.
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
hi.. I want to move a set of files that contain a particular string. I wished to do that with find but i am unable to do that. can anybody give me a good method?
:) (12 Replies)
Discussion started by: sskb
12 Replies
2. Shell Programming and Scripting
Hi There,
I am trying to move files, the file is present in this location:
/iAm4Free/test/generate/txt/information.txt
I need to move it to:
/iAm4Free/test1/generate/txt/information.txt
The only difference is the "test" is replaced with "test1". But the constraint is. The parent... (5 Replies)
Discussion started by: iAm4Free
5 Replies
3. Shell Programming and Scripting
I wrote a script which moves files on first in first out basis.
for i in `ls -ltr | grep ^- | head -10 | awk '{print $9}'`
do
mv $i Test/
done
But donno some reason, this is not working on my Linux box. May i know the reason?
Can the above script be done by using positional... (2 Replies)
Discussion started by: venkatesht
2 Replies
4. UNIX for Dummies Questions & Answers
Hi
I need to be able to move files from one central locations to different servers on our network. So i want all of our operators to place files to one area on the main storage area. From there i need a script that first checks the file is stable (finished copying)
then copy to another server,... (5 Replies)
Discussion started by: treds
5 Replies
5. Shell Programming and Scripting
HI All,
I am coding a shell script which will pick all the .csv files in a particular directoryand write it in to a .txt file, this .txt file i will use as a source in datastage for processing.
now after the processing is done I have to move and archive all the files in the .txt file to a... (5 Replies)
Discussion started by: subhasri_2020
5 Replies
6. UNIX for Dummies Questions & Answers
I am running a code like this
foreach list ($tmp)
mv *_${list}.txt ${chart}_${list}.txt #mv: when moving multiple files, last argument must be a directory
mv *_${list}.doc ${chart}_${list}.doc #mv: when moving multiple files, last argument must be a... (3 Replies)
Discussion started by: animesharma
3 Replies
7. Shell Programming and Scripting
Hi guys can you please help me with a script to find files with one row/1 line of content then move the file to another directory my script below runs but nothing happens to the files....Alternatively Ca I get a script to find the *.csv files with "wc -1" results = 1 then create a list of those... (5 Replies)
Discussion started by: Dj Moi
5 Replies
8. UNIX for Dummies Questions & Answers
Selected directories on our system generate alerts when they exceed 60% of the disk space so I have used gzip to make the files smaller on one of the directories in question (AdminServer logs). I want to move these to another directory what is the best way to make this happen?
Thanks.. (4 Replies)
Discussion started by: nosuchluck
4 Replies
9. AIX
I have a bunch of hidden files in a directory in AIX. I would like to move these hidden files as regular files to another directory.
Say i have the following files in directory /x
.test~1234~567
.report~5678~123
.find~9876~576
i would like to move them to directory /y as
test~1234~567... (10 Replies)
Discussion started by: umesh.narain
10 Replies
LEARN ABOUT SUNOS
aset.restore
aset.restore(1M) System Administration Commands aset.restore(1M)
NAME
aset.restore - restores system files to their content before ASET is installed
SYNOPSIS
aset.restore [-d aset_dir]
DESCRIPTION
aset.restore restores system files that are affected by the Automated Security Enhancement Tool (ASET) to their pre-ASET content. When ASET
is executed for the first time, it saves and archives the original system files in the /usr/aset/archives directory. The aset.restore
utility reinstates these files. It also deschedules ASET, if it is currently scheduled for periodic execution. See asetenv(4).
If you have made changes to system files after running ASET, these changes are lost when you run aset.restore. If you want to be abso-
lutely sure that you keep the existing system state, it is recommended that you back-up your system before using aset.restore.
You should use aset.restore, under the following circumstances:
You want to remove ASET permanently and restore the original system (if you want to deactivate ASET, you can remove it from schedul-
ing).
You are unfamiliar with ASET and want to experiment with it. You can use aset.restore to restore the original system state.
When some major system functionality is not working properly and you suspect that ASET is causing the problem; you may want to
restore the system to see if the problem persists without ASET.
aset.restore requires root privileges to execute.
OPTIONS
The following options are supported:
-d aset_dir Specify the working directory for ASET. By default, this directory is /usr/aset. With this option the archives directory
will be located under aset_dir.
FILES
/usr/aset/archives archive of system files prior to executing aset
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWast |
+-----------------------------+-----------------------------+
SEE ALSO
aset(1M), asetenv(4), attributes(5)
System Administration Guide: Basic Administration
SunOS 5.10 11 Oct 1991 aset.restore(1M)