06-07-2010
There's no command to undo an rm. You'll have to restore it from backup or, if you have an identical system handy, borrow a copy from it. Be sure to delete your /bin/sh symlink first, don't just overwrite it, or you might end up overwriting bash itself too!
My suggestion for next time would be to never, ever delete a system-critical file like sh. Move it if you must, but don't delete.
Last edited by Corona688; 06-07-2010 at 03:49 PM..
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
I was wondering is it possible todo something like following:
A) Settings:-
- 2 servers on the network
- both can be reached via /net/SERVER1/datadir and /net/SERVER2/datadir
- i'm running rsync to syncronize the data coming to server1 from whatever application
B) Wanted:
on other... (2 Replies)
Discussion started by: Bashar
2 Replies
2. UNIX for Dummies Questions & Answers
question abt symbolic link ...
i'm doing the following ...
ln -s x.sh ./scripts/y.sh
and
cat ./scripts/y.sh
it is giving following error
cat: cannot open y.sh
Any reason u an think of ?
But it is working fine when i goto scripts directory and cretae the symbolic link.
... (1 Reply)
Discussion started by: bhargav
1 Replies
3. UNIX for Dummies Questions & Answers
I have just tried to make my first shortcut aka symbolic link.
I entered this command:
ln -s /one/two/three/four/help/admin admindirectory
to make a link called 'admindirectory' that would take me to:
/one/two/three/four/help/admin
It seems to have created a directory called... (5 Replies)
Discussion started by: Sepia
5 Replies
4. UNIX for Dummies Questions & Answers
hello folks
how y'all doin
well i have some questions about symbolic link and hard link
hope some one answer me
i open terminal and join as root
and i wrote ln -s blah blah
then i wrote ls
i see red file called blah blah
but didn't understand what is this can some one explain and... (2 Replies)
Discussion started by: detective linux
2 Replies
5. Shell Programming and Scripting
Hi,
i am trying to create sym links on sles 11 , but it seems i am doing something wrong.
oracle@tests:/u01/app/oracle/oradata/ACIS> pwd
/u01/app/oracle/oradata/ACIS
oracle@tests:/u01/app/oracle/oradata/ACIS> ln -s /db/ACIS/dbase/dbf/ /u01/app/oracle/oradata/ACIS/... (2 Replies)
Discussion started by: tonijel
2 Replies
6. Shell Programming and Scripting
Hi all,
Can anyone please confirm if the command below is the only way that I can get what the symbolic link is set to?
mnlxd110(oracle)/db/posd2/dba$: ls -l | grep "^l"
lrwxrwxrwx 1 oracle dba 28 Aug 9 2011 bdump -> diag/rdbms/posp1/posp1/trace
mnlxd110(oracle)/db/posd2/dba$:... (7 Replies)
Discussion started by: newbie_01
7 Replies
7. UNIX for Dummies Questions & Answers
Hi everybody,
I read about treads realted to this issue but they did not resovle issue given below.
Please help me resolve issue given below
I have html file under /srv/www/htdocs/actual_folder
ls actual_folder/
test.html
and following link works... (0 Replies)
Discussion started by: newbielgn
0 Replies
8. Shell Programming and Scripting
how to list all symbolic link can i use find / path -type l (1 Reply)
Discussion started by: avtalan
1 Replies
9. How to Post in the The UNIX and Linux Forums
how to list all symbolic link, can i use find / path -type l (2 Replies)
Discussion started by: avtalan
2 Replies
10. UNIX for Dummies Questions & Answers
Hi, trying to understand more about symblic link, when I compiled a program called "match" in one folder ~/downloadsoftware/I want this program to be accessible like a system command by putting a symbolic link in /usr/bin/ Not by setting the $PATH method in .bashrc at this time.
What I did is:... (4 Replies)
Discussion started by: yifangt
4 Replies
LEARN ABOUT REDHAT
delete
delete(n) [incr Tcl] delete(n)
NAME
delete - delete things in the interpreter
SYNOPSIS
delete option ?arg arg ...?
DESCRIPTION
The delete command is used to delete things in the interpreter. It is implemented as an ensemble, so extensions can add their own options
and extend the behavior of this command. By default, the delete command handles the destruction of namespaces.
The option argument determines what action is carried out by the command. The legal options (which may be abbreviated) are:
delete class name ?name...?
Deletes one or more [incr Tcl] classes called name. This deletes all objects in the class, and all derived classes as well.
If an error is encountered while destructing an object, it will prevent the destruction of the class and any remaining objects. To
destroy the entire class without regard for errors, use the "delete namespace" command.
delete object name ?name...?
Deletes one or more [incr Tcl] objects called name. An object is deleted by invoking all destructors in its class hierarchy, in
order from most- to least-specific. If all destructors are successful, data associated with the object is deleted and the name is
removed as a command from the interpreter.
If the access command for an object resides in another namespace, then its qualified name can be used: delete object foo::bar::x If
an error is encountered while destructing an object, the delete command is aborted and the object remains alive. To destroy an
object without regard for errors, use the "rename" command to destroy the object access command.
delete namespace name ?name...?
Deletes one or more namespaces called name. This deletes all commands and variables in the namespace, and deletes all child names-
paces as well. When a namespace is deleted, it is automatically removed from the import lists of all other namespaces.
KEYWORDS
namespace, proc, variable, ensemble
itcl 3.0 delete(n)