Ich bin Deborah.
Schaut euch meine Arbeiten
an oder lest meinen Blog.

Linux Console Merkzettel

Völlig zusammenhangslose Sammlung von Befehlen, die ich hin und wieder brauche. Wächst wahrscheinlich.

Leider ist der Eintrag nur auf Amerikanisches Englisch verfügbar. Der Inhalt wird unten in einer verfügbaren Sprache angezeigt. Klicken Sie auf den Link, um die aktuelle Sprache zu ändern.

How to mount USB stick [source]

  1. Find the drive identifier after plugging the USB stick in (something like /dev/sdc1) sudo fdisk -l
  2. Create folder to mount the drive and mount it there sudo mkdir /media/usb-stick
    sudo mount /dev/sdc1 /media/usb-stick

How to find files in packages

  • .. How to find files in installed packages, e.g. if you are looking for a source file called xyz.h: dpkg --search xyz.h
  • .. How to find files in available packages that might be not installed:sudo apt-get install apt-file
    apt-file update
    apt-file search xyz.h

Backup and restore GPG keys [source]

  1. List public GPG keys: gpg --list-keysThe key_id is the part after something like „pub 1024D/“.
  2. Export public GPG key: gpg -ao xyz-public.key --export key_id
  3. List secret GPG keys: gpg --list-secret-keysThe key_id is the part after something like „sec 1024D/“.
  4. Export secret GPG key: gpg -ao xyz-private.key --export-secret-keys key_id
  5. Restore GPG keys: gpg --import xyz-public.key
    gpg --import xyz-private.key

Backup and restore installed packages

  1. Save installed packages as list in file:dpkg --get-selections > selections.txt
  2. Install package list from file:
    dpkg --set-selections < selections.txt
    sudo apt-get update
    sudo apt-get dselect-upgrade
    sudo apt-get dist-upgrade
    sudo apt-get upgrade

Network usage

  • Bandwidth usage by program How much bandwith is used by running programs:
    sudo nethogs wlan0
  • Traffic in local network
    sudo iftop -i wlan0
  • Port usage by program
    sudo netstat -taupen

Sag etwas

Deine email-Adresse wird nicht veröffentlicht.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Artikel zum Thema "Blog":

How to print an invisible IR marker using a standard printerQuick, Draw! Generierte Zeichnungen, Teil 2(English) The Art of CodingImperfekte MandalasHerbstblätterFarbexplosion #25 Jahre KAZOOSH!FarbexplosionUbuntu 15.10, MongoDB und node.jsSpeed of Fencing Remixgit cheat sheetFraktaleofxSortableListHäkeln: Haarband mit JeansknopfWandmalen zu Marias GeburtstagLinux / Ubuntu + Serato Vinyl Control System + Pure DataWicket-Bootstrap – Navbar und Pageparameters – aktives Item setzenLinux Console MerkzettelCrawling Traces @Deutscher Multimediapreis mb21Crawling Traces History Viewernew.livestream.com unter Ubuntu mit VLC abspielenCrawling Traces at Hechtfest / hechtgruenLinksammlung: Datensicherheit, soziale Netzwerke und sicheres MailingFix: VMware Player Crash unter Ubuntu 13.04Xubuntu: Wenn Dockbarx Thunar oder das Terminal nicht startet.Ubuntu 12.10, libwebsockets and OFSetting up Meteor with Ubuntu 12.10 on an NTFS share partitionWebauftritt: KAZOOSH!Zwischenstand IsolinienDas Scheunentor wird buntSkype auf Ubuntu 10.10 oder 11.04 64bitElitebook 8440p vs UbuntuKryptografie & Datensicherheit – NotizenRandom Compilation IIRandom Compilation IAll You Can Eat in DresdenWebauftritt: ESE 2010