Basic Commands

LINUXIN PERUSKOMENNOT - Linkki PDF -dokumenttiin jossa perustoimintoja listattuna

https://www.debian.org/doc/manuals/refcard/refcard Debian Pikaohje

Näytä nykyinen Kernel versio

uname -r

Hakemiston luominen ja poistaminen

Hakemiston luominen: md /mnt/iso

Hakemiston poistaminen: rd /mnt/iso

Make more space to /

you can mv a directory to under you home directory, and make a soft link

mv /var/cache/apt /home/apt_cache

ln -s /home/apt_cache /var/cache/apt

Remove outdated Kernel files from /

dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge

poista vanhat konfigurointitiedostot

aptitude purge ~c

Ohjelmien asentaminen

./configure

make

make install