Вы находитесь на странице: 1из 2

Solaries Commands

Logout
mkdir /install
netstat -rn
route delete 224.0.0.0/4 192.168.50.3
cast on the interface that have this IP
route add 224.0.0.0/4 192.168.10.1
ace that hold this IP address
vi /etc/hosts
address for all the NICs
ndd -get /dev/udp udp_max_buf
ndd -set /dev/udp udp_max_buf 420000

to log out the connected user


to create a directory called install
to show the routing table
to delete the route configured for Multi
address
to add the multicast route to the interf
to open the hosts file that hold the IP
to get the UDP max Buffer size
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
cd ..
ls
pwd

to
to
to
to

opent the etc folder


get up one step
list the directory contacts
show the working directory

Creating & Deleting Directory


mkdir albert
rmdir albert

to create a new directory called albert


to remove the directory called albert

Creating & Deleting Files


touch Albert.text
cat albert.text
ile
mv -f -i albert.* /dir1 /dir2
rt from Dir2 to Dir2
rm albert.text
vi albert.text
pg albert.text
page a time.
cp albert.text albert.exe
le albert.exe in the same location

to create a new file called Albert.text


to display the contents of albert.text f
to move all the files starting with albe
to delete the file named albert.text
to open the file Albert.text for editing
to view the contents of Albert.text one
to copy the file albert.text to a new fi

Shutdown & Restart


init 0
init 6

to fully shutdown the system


to restart the system

Configure an NTP Server


cd etc/inet
cp ntp.server ntp.conf
onf file
cd ..

to open the /etc/inet directory


to copy the ntp.server file to the ntp.c
to go to the root

cd /etc/init.d
./xntpd start

to open the /etc/init.d directory


to start the ntp service

Configure an NTP Client


cd etc/inet
cp ntp.server ntp.conf
onf file
cd ..
cd /etc/init.d
./xntpd start

to open the /etc/inet directory


to copy the ntp.client file to the ntp.c
to go to the root
to open the /etc/init.d directory
to start the ntp service

Вам также может понравиться