Kategori: Linux (Sida 26 av 31)

Nätverk i Linux…

Hittade en bra site som f?rklarar mycket…
http://www.linuxhomenetworking.com/wiki

S? h?r kan det se ut p? den sidan som handlar om n?tverk:

Setting Your NIC’s Speed Parameters with mii-tool

You can set your NIC to force itself to a particular speed and duplex by using the -F switch with any of the following options: 100baseTx-FD, 100baseTx-HD, 10baseT-FD, or 10baseT-HD. Remember that you could lose all network connectivity to your server if you force your NIC to a particular speed/duplex that doesn’t match that of your switch:

[root@bigboy tmp]# mii-tool -F 100baseTx-FD eth0

Unfortunately there is no way to set this on reboot permanently except by placing it the command in the /etc/rc.local file to let it be run at the very end of the booting process or by creating your own startup script if you need it set earlier. Creating your own startup scripts is covered in Chapter 7, ”The Linux Boot Process”.

N?tverk i Linux…

Hittade en bra site som f?rklarar mycket…
http://www.linuxhomenetworking.com/wiki

S? h?r kan det se ut p? den sidan som handlar om n?tverk:

Setting Your NIC’s Speed Parameters with mii-tool

You can set your NIC to force itself to a particular speed and duplex by using the -F switch with any of the following options: 100baseTx-FD, 100baseTx-HD, 10baseT-FD, or 10baseT-HD. Remember that you could lose all network connectivity to your server if you force your NIC to a particular speed/duplex that doesn’t match that of your switch:

[root@bigboy tmp]# mii-tool -F 100baseTx-FD eth0

Unfortunately there is no way to set this on reboot permanently except by placing it the command in the /etc/rc.local file to let it be run at the very end of the booting process or by creating your own startup script if you need it set earlier. Creating your own startup scripts is covered in Chapter 7, ”The Linux Boot Process”.

Radera filer äldra än x dagar…

find /path/to/files* -mtime +5 -exec rm {} \;

– F?rsta argumentet ?r s?kv?gen till filerna
– Andra argumentet, -mtime, ?r antalet dagar. S? +5 tar bort fielr ?ldre ?n 5 dagar
– Tredje argumentet, -exec, skickar ett kommando. I det h?r fallet rm och {} \; i slutet m?ste vara med f?r att det ska fungera.

Radera filer ?ldra ?n x dagar…

find /path/to/files* -mtime +5 -exec rm {} ;

– F?rsta argumentet ?r s?kv?gen till filerna
– Andra argumentet, -mtime, ?r antalet dagar. S? +5 tar bort fielr ?ldre ?n 5 dagar
– Tredje argumentet, -exec, skickar ett kommando. I det h?r fallet rm och {} ; i slutet m?ste vara med f?r att det ska fungera.

« Äldre inlägg Nyare inlägg »

© 2024 Editio Princeps

Tema av Anders NorenUpp ↑