Check These Out
Adjust the
$ head -c
part for password length.
I use filenames like "hans@commandlinefu.com.gpg" and a vim which automatically decrypts files with .gpg suffixes.
Use set +o noclobber and you will be able to replace files again
smem is very clever, it keeps in mind shared memory in its calculations!!!
http://www.selenic.com/smem/
where
- memory 256 assign 256 Mb RAM
- acpi on enable ACPI (mandatory if you use Winfog 2000
- ioapic off disable the IO APIC. Not useful if you use one CPU (on virtual machine or a 32 bit operative system). As ACPI, this switch is mandatory for Winbug 2000
- pae on enable the Phisical Address Extension how to use more than 4Gb of RAM on x86 CPU
- hwvirtex on enables hardware virtualization extensions for microprocessors that have this feature (which should be also enabled in the BIOS of the motherboard)
- nestedpaging on allows part of the processes of memory management hardware are made directly
I've been using colordiff for years. wdiff is the new fav, except its colors. Word delimited diffs are more interleaved, easing the chore of associating big blocks of changes.
Create a exact mirror of the local folder "/root/files", on remote server 'remote_server' using SSH command (listening on port 22)
(all files & folders on destination server/folder will be deleted)
The "-r 2" option puts lsof in repeat mode, with updates every 2 seconds. (Ctrl -c quits)
The "-p" option is used to specify the application PID you want to monitor.
The "-u' option can be used to keep an eye on a users network activity.
"lsof -r 2 -u username -i -a"
Print all lines between two line numbers
This command uses sed(1) to print all lines between two known line numbers in a file. Useful for seeing output in a log file, where the line numbers are known. The above command will print all lines between, and including, lines 3 and 6.
Write 200 blocks of 512k to a dummy file with dd, timing the result. The is useful as a quick test to compare the performance of different file systems.