Archive for December, 2007

how to log into a soalris zone from the global zone

root@solaris# zlogin zone1
[Connected to zone 'zone1' pts/2]
Last login: Mon Dec 10 10:24:53 on pts/2
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
You have new mail.
#

Comments

List solaris zones

root@solaris# zoneadm list -v
ID NAME             STATUS         PATH
0 global           running        /
2 zone1            running        /zones/zone1

Comments

Deleting files with special charaters

Deleting file that have special characters in them can be tricky. This is what you have to do to delete them.

because rm -r -file will give you a error
[root@solaris:/]# rm -C

rm: illegal option — C
usage: rm [-fiRr] file …

so what you have to do is search figure out what the inode is

[root@solaris:/]# ls -il -C
total 2723130
32081 -rw-r–r– 1 root root 1392916480 Dec 4 14:55 -C

the 32081 is the inode number

[root@solaris:/u10/app 102]# find . -inum 32081 -exec rm -i {} \;
rm: remove ./-C (yes/no)? y

now the file is gone, yaha!

Comments

« Previous entries Next Page » Next Page »