Tag: disk

Cryptography, General, Security Software

TrueCrypt | Disk Encryption

TrueCrypt is an open-source and cross-platform disk encryption software. It works on Windows 7/Vista/XP, Mac OS X, and Linux. It is also available as stand alone executable. It establishes and maintains an on-the-fly-encrypted volume (data storage device). On-the-fly encryption means that data is automatically encrypted right before it is saved and decrypted right after it is loaded, …


How to mark directory on disk as a Python package

To mark a directory as a Python package directory you have to put a file named __init__.py in this directory. for example, myproject/libraries/__init__.py myproject/libraries/mymodule.py myproject/main.py you can import mymodule.py in main.py as: import libraries.mymodule or from libraries import mymodule The __init__.py file is usually empty.

Linux, Ubuntu

View Hard Drive Partitions with fdisk and parted

To list the partition tables with fdisk: sudo fdisk -lsudo fdisk -l Output: Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk …