Find out file inode Find out file inode number: ls -il {<filename> Use find command to remove file find . -inum <inode-number> -exec rm -i {} ;
Find out file inode Find out file inode number: ls -il {<filename> Use find command to remove file find . -inum <inode-number> -exec rm -i {} ;
gateway#show ip dhcp binding Bindings from all pools not associated with VRF: IP address Client-ID/ Lease expiration Type Hardware address/ User name 192.168.2.23 XXXX.XXX.XXXX.XX Jan 12 2009 05:12 PM Automatic 192.168.2.27 XXXX.XXXX.XXXX.XX Jan 12 2009 05:20 PM Automatic gateway# XXXX.XXXX.XXXX.XX = MAC address of server or network appliance.
goto System Preferences Select Sharing Turn on Apple Remote Desktop
the HOME and END keys on a mac keyboard scroll to the very top or bottom of the current document. To go to the start or end of the current line, all you need to do is use CMD+left-arrow or CMD+right-arrow
EPEL - http://fedoraproject.org/wiki/EPEL RPMForge - https://rpmrepo.org/RPMforge
Adding a 2gb swap file cd /usr/local/swap mkfile 2G swapfile.0 swap -a /usr/local/swap/swapfile.0 Deleting a swap file swap -d <swapfilename> Making sure a swap file doesnt get lost after a reboot Add line as follows to /etc/vfstab /usr/local/swap/swapfile.0 - swap - no - that’ll make it use the extra swap file when the system reboots
Memory ps -ef -o vsz,pid,args | sort -rn | head -10
Create the virtual interface: # ifconfig eri0:1 plumb Configure the virtual interface: # ifconfig eri0:1 192.162.2.161 netmask 255.255.255.0 Check to make sure it worked: # ifconfig -a lo0: flags=1000849 mtu 8232 index 1 inet 127.0.0.1 netmask ff000000 eri0: flags=1000843 mtu 1500 index 2 inet 192.162.2.160 netmask ffffff00 broadcast 192.162.2.255 ether 0:3:ba:9:63:9b eri0:1: flags=1000842 mtu 1500 index 2 inet 192.162.2.161 netmask ffffff00 broadcast 192.162.2.255 Finally bring up your new virtual interface: # ifconfig eri0:1 up To make it come up on start:
Changing the IP on Solaris 10 requires editing two files: /etc/hosts /etc/inet/ipnodes If you are changing network address, you will need to change the router address in the file: /etc/defaultrouter Changing the hostname now only requires editing these files: /etc/hosts /etc/nodename /etc/hostname.*
/etc/hosts /etc/hostname.* /etc/defaultrouter /etc/netmasks /etc/resolv.conf Also check the /etc/security/hosts.allow on the machine as well to make sure your new ip range is allowed for ssh access or telnet etc.