Useful Linux Utilities
- Cross platform command comparison
- See: rosetta.html
- Machine ID (MAC address)
- Use: /sbin/ifconfig eth0
- CPU Info
- Use: cat /proc/cpuinfo
- Linux Distribution
- Use: cat /proc/version
- Use: cat /etc/issue
- Use: uname -r (not so complete)
- Disk usage info
- Use: df -h (all mounted disks)
- Use: df -hl (local disks)
- Determining predefined preprocessor macros
- For compiler 'f90' use: f90 -v dummy.f
- For compiler 'gcc' use: gcc -dM -E dummy.c
- GNU library version info
- Use: /lib/libc.so.6 (or whatever libc version you have)
- Shared library contents
- Use: nm library-of-interest.so
- Shared library usage
- Use: ldd executable-of-interest
- Show installed software packages (only those installed with package
manager).
- Use: rpm -qa (works for several distributions)
- Show modules loaded in kernal
- Use: lsmod
- Common startup scripts
- cat /etc/rc*
- cat /etc/init.d/*
- Xwindow X resources for an application (e.g. Web)
- Use: appres Web web
- Type of installed graphics card
- Use: /sbin/lspci | grep VGA
- Or use: glxinfo | grep renderer
- Or look in: /etc/X11/xorg.conf or
/etc/X11/XFree86Config or
/etc/X11/XF86Config
- Determining which Nvidia driver installed
- Use: cat /proc/driver/nvidia/version
- Use: glxinfo | grep version
- Determining if accelerated graphics driver installed
- Look in: /etc/X11/xorg.conf or
/etc/X11/XFree86Config or
/etc/X11/XF86Config
- Under Section "Device"
- For ati:
- Driver "fglrx" <== accelerated
- Driver "radeon" <== non-accelerated
- Driver "ati" <== non-accelerated
- For nvidia:
- Driver "nvidia" <== accelerated
- Driver "nv" <== non-accelerated
- Command line imaging utilities
- Use: ImageMagick and its utilites:
- animate
- composite
- conjure
- convert
- display
- identify
- import
- mogrify
- montage
- CD Recording
- Use: cdrecord
- DVD Recording
- Use: isofs
- Use: growisofs
Source: docs/tips/utilities.html
Last update: 6 Feb. 2009
ArDean Leith