Archive

Archive for the ‘Tips’ Category

Tips: Handy Windows Command Prompt Commands

January 16, 2011 1 comment

This is by no means an exhaustive list, merely ubiquitous commands that I use on a daily basis that will be updated periodically as I can be bothered.

List shares on a file server:

net share

List file locks on a file server:

net file

Close open files from the previous command:

net file <ID> /close

RDP to a specific host:

mstsc.exe /v <FQDN_or-IP-address>

Map network drive:

net use X: \\FQDN\Share$ /persistent:yes

Stop a service:

net stop a <service-name>

Start a service:

net start <service-name>
Categories: Microsoft, Scripting, Tips

Tips: Handy Linux Commands

January 15, 2011 1 comment

This is by no means an exhaustive list, merely commands that I use on a daily basis that will be updated periodically as I can be bothered.

Use root complete with variables & script access:

sudo -

Renew DHCP lease:

dhclient -r

Restart networking:

 /etc/init.d/network restart

Check CPU usage/processes:

top

Find commands:

apropos <command-or-pattern>
man -k <command-or-pattern>

Find files & directories:

locate <pattern>

Display PCI devices:

lspci

Display USB devices:

lsusb

Display storage devices:

fdisk -l

Check for new hardware (Happens at boot time automatically):

kudzu --probe

Check for new hardware & test kudzu (requires rhpxl package):

ddcprobe

Gather information from the BIOS:

dmidecode
biosdecode
ownership #(Compaq specific)
vpddecode #(IBM specific)

List drivers/kernel modules:

lsmod

Manually load a module and its dependencies:

modprobe <modulename>

Display information about a specific module or modules:

modinfo <packagename>

Launch the HAL device manager to examine all devices HAL knows about:

hal-device-manager
Categories: BASH, Linux, Red Hat, RHCE, RHCT, Tips