On Tue, Jan 6, 2009 at 11:37 AM, Michael <[email protected]> wrote: > hello everybody! > Im new here. > > I have accidently preformed the following command > alias ll="ls -l" > /etc/profile > oops! > should have been >> > > ok. now /etc/profile is ruined. > 1. is there a way to re-generate this file? > 2. are there ways to re-generate those kind of files?
Well, it's good practice to keep copies of anything you change before you touch it. If you're running Solaris 10 or SXCE, you should find a copy of the original at /var/sadm/pkg/SUNWcsr/save/pspool/SUNWcsr/reloc/etc/profile (copies of these files are kept here in an unmodified from so that a zone gets unmangled versions; it's also a good place to go to if you want to go back to unmodified files or see what changes might have been made). -- -Peter Tribble http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ _______________________________________________ sysadmin-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
