January 19

create new partition on hard drive in command line

Create partition
fdisk /dev/devname

in menu, key: n
write changes, key: w
and exit, key: q

Create file system
mkfs.ext4 /dev/devnameX

fdisk /dev/sda
Command (m for help): m

short keys review:

Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition’s system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): a
Partition number (1-5):

January 12

записка по архивации

Создать RAR архив. Дефолтное сжатие. rar a -r archive.rar files
Создать RAR архив. Быстрое сжатие rar a -r -m1 archive.rar files
Создать RAR архив. Максимальное сжатие rar a -r -m5 archive.rar files
Создать ZIP архив. Дефолтное сжатие zip -r archive.zip files
Создать ZIP архив. Быстрое сжатие zip -r -1 archive.zip files
Создать ZIP архив. Максимальное сжатие zip -r -9 archive.zip files
Создать 7z архив. Дефолтное сжатие 7z a archive.7z files
Создать 7z архив. Быстрое сжатие 7z a -mx=1 archive.7z files
Создать 7z архив. Максимальное сжатие 7z a -mx=9 archive.7z files
Создать bzip2 архив. Максимальное (дефолтное) сжатие tar cfj archive.tar.bz2 files
Создать bzip2 архив. Среднее сжатие tar cf archive.tar files
bzip2 -vc4 archive.tar > archive.tar.bz2
Создать bzip2 архив. Быстрое сжатие tar cf archive.tar files
bzip2 -vc1 archive.tar > archive.tar.bz2
Создать gzip архив. Дефолтное сжатие tar cfz archive.tar.gz files
Создать gzip архив. Максимальное сжатие tar cf archive.tar files
gzip -vc9 archive.tar > archive.tar.gz
Создать gzip архив. Быстрое сжатие tar cf archive.tar files
gzip -vc1 archive.tar > archive.tar.gz
Создать XZ архив. Дефолтное сжатие export XZ_OPT=""
tar cfJ archive.tar.xz files
Создать XZ архив. Быстрое сжатие export XZ_OPT="-1"
tar cfJ archive.tar.xz files
Создать XZ архив. Максимальное сжатие export XZ_OPT="-9 --extreme"
tar cfJ archive.tar.xz files

кусок текста взят тут
спасибо автору