Search

Monday, May 19, 2014

Linux terminal 101

List of commonly used (yet forgotten) Linux terminal commands:


  • Prints certain LSB (Linux Standard Base) and Distribution information.
    lsb_release -a
  • command-line utility for Unix and Unix-like operating systems whose primary purpose is to convert and copy files. Example below will restores a hard disk drive (or an SD card, for example) from a previously created image.
    dd if=system.img of=/dev/sdc bs=4096 conv=noerror 
  • Print certain system information
    uname
  • Queries, installs, removes, and maintains Debian software packages and their dependencies.
    dpkg
    The primary and more user-friendly front-end for dpkg is aptitude. dpkg itself is controlled entirely via command line parameters, which consist of exactly one action and zero or more options. The action-parameter tells dpkg what to do and options control the behavior of the action in some way. dpkg can also be used as a front-end to dpkg-deb and dpkg-query. The list of supported actions is below (in the "Actions" section). If any such action is encountered dpkg just runs dpkg-deb or dpkg-query with the parameters given to it, but no specific options are currently passed to them, to use any such option the back-ends need to be called directly.

No comments:

Post a Comment