Monday, December 18, 2006

Common Linux commands

List hard drives:
:$ su
:# sfdisk -s

List partition tables:
:$ su
:# sfdisk -l

Remove a default gateway:
#: sudo route del default
Add default gateway, this will add 192.168.1.101 as the default gateway:
#: sudo route add default gw 192.168.1.101
Find Windows machine in the network (needs smbfs).
$: findsmb
Get the details of the machine in the network (needs smbfs):
$: nbmlookup 

~ts

No comments:

QNX: Running a function at specific interval using timer interrupt

#include <iostream> #include <csignal> #include <ctime> #include <cerrno> #include <cstring> #include <unis...