Penguin
Diff: AdvancedUserTips
EditPageHistoryDiffInfoLikePages

Differences between current version and revision by previous author of AdvancedUserTips.

Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History

Newer page: version 25 Last edited on Saturday, July 8, 2006 3:24:50 pm by AristotlePagaltzis
Older page: version 19 Last edited on Tuesday, May 18, 2004 7:47:40 pm by StuartYeates Revert
@@ -1,35 +1,31 @@
-* strace(1) is your friend :) It shows all the c library calls made by a process - this is very useful for debugging or just casual snooping. 
+* strace(1) is your friend :) It shows all the [C] library calls made by a process this is very useful for debugging or just casual snooping. Also try ltrace(1) sometime. it shows all library calls made. (Consider how often you call strcmp(3), then ponder how much information this is going to churn out.) :)  
  
 * In a similar vein, you can get the dynamic linker to show you how external symbols in executables get resolved. See [LD_DEBUG]. 
  
-* while we're on the copious debugging information track , try ltrace(1) sometime. it shows all library calls made (consider how often you call strcmp , then ponder how much information this is going to churn out :)  
+* procinfo(8) gives a nice summary of the [Kernel] information available in the <tt>/proc</tt> FileSystem , such as memory/[CPU] usage , KernelModule~s, [IRQ] usage, devices and supported FileSystems. See ProcFileSystem  
  
-* procinfo (8) gives a nice summary of the kernel information available in the /proc filesystem , such as memory/CPU usage, kernel modules , [IRQ ] usage, devices and supported filesystems . See ProcFileSystem  
+* netstat (8) shows active connections , including tcp(7) , udp(7) and unix(7) socket connections. <tt>netstat -anAinet</tt> shows all [TCP ] and [UDP] [Port]s that are open on your machine – very handy
  
-* netstat(8) shows active connections , including tcp (7) , udp(7 ) and unix (7 ) socket connections . __netstat -anAinet__ shows all IP ports that are open on your machine - very handy
+* Depending on the permissions on certain executables , you can start another [X] server as a normal user. (Default [Slackware] lets you , [Debian] doesn't. ) To use virtual terminal 8 (which is normally unused ), do <tt>xinit /usr/bin/X11/xterm -display :1 .0 -- /usr/bin/X11/Xwrapper :1 .0 vt08</tt>. Now if you run [X] programs with <tt>$DISPLAY</tt> set to <tt>:1</tt> instead of <tt>:</tt>, they go to the server running on vt 8. See xinit(1), Xwrapper(1)  
  
-* Depending on the permissions on certain executables, you can start another X server as a normal user. (Default [Slackware ] lets you , DebianLinux doesn't ). To use virtual terminal 8 (which is normally unused) , do __xinit /usr /bin/X11/xterm -display :1.0 -- /usr/bin/X11/Xwrapper :1.0 vt08__. Now if you run X programs with __$DISPLAY__ set to :1 instead of :, they go to the server running on vt 8. See xinit(1), Xwrapper(1
+* Store all your data in [CVS ] (or SubVersion , or... ). It's great. If you're bored , store <tt> /etc< /tt> in [CVS] too :) 
  
-* Store all your data in [CVS ] ( or SubVersion, or ... ). It's great. If you're bored, store __/etc__ in cvs too :)  
+* Use MakeFile~s (or [Ant ] or <tt>rake</tt> or ) to build everything
  
-* Use [Makefiles|MakeFile] (or [Ant] ) to build everything
+* Learn m4 (1 ) to write macros in. If you're a programmer, M4 is the language used by autoconf(1) for creating portable <tt>configure</tt> scripts
  
-* Learn m4 (1) to write macros in. If you're a programmer, m4 is the language used by autoconf (1) for creating portable configure scripts
+* Learn [LaTeX] for documentation (or lyx (1) if you're lazy). You can use pdflatex (1) (which is normally included with the <tt>tetex</tt> package that provides [LaTeX] for linux distributions) to create PDF files in any style that normal [LaTeX] allows you to. This is very handy for making portable slide presentations as well as the "more typical" reports and articles. See PdfLatexNotes for more hints on this
  
-* Learn [LaTeX] for documentation (or lyx(1) if you 're lazy) . You can use pdflatex (1) (which is normally included with the __tetex__ package that provides [LaTeX ] for linux distributions) to create PDF files in any style that normal [LaTeX ] allows you to . This is very handy for making portable slide presentations as well as the "more typical" reports and articles . See PdfLatexNotes for more hints on this
+* For pure EyeCandy, your desktop 's "background picture" doesn't have to be a picture at all . You can amaze [Windows] users by running one of the [xscreensaver (1)]s in the root window. Try <tt>$ atlantis -root &</tt> – if you have hardware accelerated [OpenGL ] graphics, it causes negligible CPU load . (Try <tt>locate atlantis</tt> if you don't know where it is.) Another favourite for running in the root window is xearth(1)
  
-* For pure EyeCandy, your desktop's "background picture" doesn't have to be a picture at all . You can amaze [Windows] users by running one of the [xscreensaver(1)]s in the root window . Try __$ atlantis -root &__ - if you have hardware accelerated [OpenGL] graphics , it causes negligible CPU load. (Try __locate atlantis__ if you don't know where it is.) Another favourite for running in the root window is xearth(1)
+* If you add a line saying <tt>* .* /dev/tty9</tt> to <tt>/etc/syslog .conf</tt> all log messages will also be printed to tty9 , making it really easy to watch the logs
  
-* If you add a line saying __*.* /dev /tty9__ to __ /etc/syslog .conf__ all log messages will also be printed to tty9, making it really easy to watch the logs
+* If you're having issues with [DNS] resolution intermittently failing then try adding the line <tt>options attempts:4< /tt> and /or <tt>options timeout:10</tt> to <tt> /etc/resolv .conf</tt> . (See resolv.conf(5))  
  
-* If you're having issues with DNS resolving intermittantly not working then try adding the line __options attempts:4__ and/or __options timeout:10__ to __/etc/resolv.conf__. (see resolv.conf(5))  
-  
- * To change your language / key mappings under DebianLinux use __ dpkg-reconfigure console-common__  
+* To change your language/key mappings under [Debian] use <tt> dpkg-reconfigure console-common</tt>  
  
 * If you specify the path to one of your files in a program other than a shell, you can still omit the name of your home directory, if it was your [PWD|pwd(1)] when the program was started. 
  
 * Have a look at the PerlOneLiners for some useful perl one-liners :) 
  
 * A similar node, BashOneLiners, has bash pipelines that you might find useful 
-  
-See also [HowToTipsHOWTO]