24 paź 2010

Terminal - polecenia (2)

Witam.

Cóż, przed nami kolejna część poleceń dla Terminala.
Zapraszam do lektury ;)

1. List files which are opened by a given process
     lsof -p PROCESS_ID
     lsof -c PROCESS_NAME

2. List processes which opened a given file
     lsof FILE_NAME

3. List processes which are using port 80
     lsof -i :80

4. Configure an ADSL connection
     sudo pppoeconf

5. Starts up ADSL connections
     sudo pon

6. Shuts down ADSL connections
     sudo poff

7. Display MAC of a given IP address
     arping IP_ADDRESS

8. Display NetBIOS name of a given IP address
     nmblookup -A IP_ADDRESS

9. Display IP address and MAC
     ifconfig -a

10. Display route
       netstat -rn

11. Set MAC of ethernet interface
       sudo ifconfig eth0 hw ether 00:11:22:33:44:55

12. Display information of a domain name
       whois example.com

13. Display the network path to a given host
       tracepath example.com

14. Request an IP address from DHCP server
       sudo dhclient

15. Temporarily restart an init script
       sudo /etc/init.d/SCRIPT_NAME restart

16. Temporarily stop an init script
       sudo /etc/init.d/SCRIPT_NAME stop

17. Add a user
       sudo adduser USER_NANE

18. Delete a user
       sudo deluser USER_NAME

19.Change user password
      sudo passwd USER_NAME

C.D.N.

0 komentarze:

Prześlij komentarz