Usefull Solaris Commands
-
Upload
depeoplearsenal7569 -
Category
Documents
-
view
213 -
download
0
description
Transcript of Usefull Solaris Commands
-
Solaries Commands
Logout to log out the connected usermkdir /install to create a directory called installnetstat -rn to show the routing tableroute delete 224.0.0.0/4 192.168.50.3 to delete the route configured for Multicast on the interface that have this IP addressroute add 224.0.0.0/4 192.168.10.1 to add the multicast route to the interface that hold this IP addressvi /etc/hosts to open the hosts file that hold the IP address for all the NICsndd -get /dev/udp udp_max_buf to get the UDP max Buffer sizendd -set /dev/udp udp_max_buf 420000 to set the UDP mac Buffer to 420kb
Changing Password:
passwd root to change the password for the root user
Traversing Between Folders
cd /etc to opent the etc foldercd .. to get up one stepls to list the directory contactspwd to show the working directory
Creating & Deleting Directory
mkdir albert to create a new directory called albertrmdir albert to remove the directory called albert
Creating & Deleting Files
touch Albert.text to create a new file called Albert.textcat albert.text to display the contents of albert.text filemv -f -i albert.* /dir1 /dir2 to move all the files starting with albert from Dir2 to Dir2rm albert.text to delete the file named albert.textvi albert.text to open the file Albert.text for editingpg albert.text to view the contents of Albert.text one page a time.cp albert.text albert.exe to copy the file albert.text to a new file albert.exe in the same location
Shutdown & Restart
init 0 to fully shutdown the systeminit 6 to restart the system
Configure an NTP Server
cd etc/inet to open the /etc/inet directorycp ntp.server ntp.conf to copy the ntp.server file to the ntp.conf filecd .. to go to the root
-
cd /etc/init.d to open the /etc/init.d directory./xntpd start to start the ntp service
Configure an NTP Client
cd etc/inet to open the /etc/inet directorycp ntp.server ntp.conf to copy the ntp.client file to the ntp.conf filecd .. to go to the rootcd /etc/init.d to open the /etc/init.d directory./xntpd start to start the ntp service