This little tutorial shows, how to disable touchpad under Ubuntu (v. 16.04) permanently. The reason is, that I generally use only the red trackpoint of my Lenovo T530 as a pointing device. I don’t need a touchpad anyway. But when working with the trackpoint, I accidentally touch the touchpad with my thumbs many times. That […]
This is how to wipe a disk via Linux shell: $> sudo shred -v -n2 -z /dev/sdc The command above erases all data on the device /dev/sdc and overrides the data 2 times. Finally every bit is overridden by zeros. So in sum it takes 3 iterations to wipe a disk via Linux shell. n specifies […]
To copy a SD-Card to another one including all partitions yo can take the following steps: Find out the device name (f.e.: /dev/mmcblk0): see List, partitioning and format drives or see Get a list of partitions or see Get free disk space and partitions Copy the whole card to an imagefile (Backup): $> sudo dd if=/dev/mmcblk0 of=backup_pi.img bs=4M […]
List all devices: $> sudo fdisk -l That will give you an overview about all your drives like that: Disk /dev/sda: 256.1 GB, 256060514304 bytes 255 heads, 63 sectors/track, 31130 cylinders, total 500118192 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): […]
To get a list of your currently mounted partitions: $> sudo blkid -o list -w /dev/null Result device fs_type label mount point UUID —————————————————————————————————————————————————————————————- /dev/sda1 ext4 / 79012107-aeb7-4f72-95ca-a9ffaa9f502b /dev/sda5 swap <swap> 34e355d7-dd93-45f7-9696-02c6d4ebb8e8 /dev/sdb1 ntfs /media/7EEFE87C38D4D6CF 7EEFE87C38D4D6CF
You can get a dump of all BIOS data of a unix machine (bspw. Debian)with: $> sudo dmidecode You can select special parts with: $> sudo dmidecode -s system-serial-number This will give you the Service-Tag of a DELL Server for example.
On Ubuntu / Debian $> sudo cat /proc/cpuinfo or $> sudo lscpu or $> sudo lshw | less