Dec
18
2006

Linux Commands

There are thousands, without an easy way to find the one needed.

Command resources:

  • SuperMan – pages from LinuxCommand.org which does provide a limited functional grouping.
  • KDE-Apps.org – home page for most KDE desktop applications.

Commands I’ve discovered and will soon forget if I don’t write them down:

  • cdecl, c++decl, explain – a program for encoding and decoding C or C++ type declarations (e.g. pointer to function returning reference to…). Not provided by SuSE 10.0.
  • kdesvn – KDE GUI for subversion.
  • KLinkStatus – excellent tool for verifying links & anchors in a web site.
  • quantaPlus – tool for working with tagging and scripting languages
  • rpm – (also consider zypper for overlapping or complementary functions):
    • rpm -q -f filespec – which package supplied a particular file.
    • rpm -i –info –list mypkg.rpm – learn about a package prior to installation. KRPMView may be more convenient.
    • rpm -i –test mypkg.rpm – test dependencies of a package before installing.
    • rpm -i mypkg.rpmdon’t use. Instead, browse with Konqueror, right-click Preview in KRPMView, then Install with YaST.
  • shred – securely erase files.
  • wget – utility for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies.
  • zypper
    • service-list – list installation and update catalogs (services).
    • service-rename – change to something meaningful the ridiculous “mnemonic” names (e.g. 20070806-1234) that YaST or ZENWorks assigns to the catalogs.

Shell initialization in openSUSE is intricate. Here are some notes on the C shell:

  • /etc/csh.{cshrc,login} – first files executed by the shell (login only executed once by the login shell). Each checks for a .local version of itself, which is where system-wide modifications are to be placed (i.e. don’t edit the main files).
  • /etc/profile.d/bindkey.tcsh – env var CSHEDIT is set to emacs here.
  • /etc/profile.d/complete.tcsh – rules for “TAB” command completions.
  • /etc/profile.d/lang.*sh – locale config, may affect ls dates.
  • ~/.{t,}cshrc, .{t,}login – user configuration, with the tcsh variants taking precedence over csh.
  • LS_COLORS – I took these notes while trying to find out who sets this environment variable; I still don’t know! grep didn’t find it in any of the above initialization scripts.
 
Powered by Wordpress and MySQL. Theme by openark.org