Difference between revisions of "Linux"

From esoterum.org
Jump to: navigation, search
Line 29: Line 29:
 
*<code>strace ./ldecod.exe -e trace=gmon.out</code> Debugging: print system calls made by ldecod.exe during execution
 
*<code>strace ./ldecod.exe -e trace=gmon.out</code> Debugging: print system calls made by ldecod.exe during execution
 
*<code>bzip2 -cd files.tar.bz2 | tar xvf -</code> Bzip
 
*<code>bzip2 -cd files.tar.bz2 | tar xvf -</code> Bzip
*<code>tar -cf ouput.tar folder</code> Tar a file
+
*<code>tar -cf ouput.tar folder</code> Tar a folder
 +
*<code> tar -czvf output.tar.gz folder</code> Tar and gzip a folder
 
*<code>tar -xzvf input.tar.gz</code> Untar and unzip a tar-ball
 
*<code>tar -xzvf input.tar.gz</code> Untar and unzip a tar-ball
  

Revision as of 18:18, 16 November 2007

CygWin

  • Installing minicom on cygwin:
  1. Add folder: /var/lock
  2. Move file minirc.dfl to /usr/local/etc
  3. Fix serial port /dev/ttyS1 -> /dev/com1 ???

Unix/Linux

Commands

  • cat /var/log/messages |grep *** (Search system messages for specific word)
  • service xinetd restart (Restart xinetd server)
  • rpm -ivh foo-1.0-1.i386.rpm (Add a package with rpm)
  • rpm -e foo (Remove a package with rpm)
  • ps (processes)
  • top (processes dynamic list)
  • cat /proc/cpuinfo (host information)
cat /proc/meminfo
dmesg
lspci
  • strace ./ldecod.exe -e trace=gmon.out Debugging: print system calls made by ldecod.exe during execution
  • bzip2 -cd files.tar.bz2 | tar xvf - Bzip
  • tar -cf ouput.tar folder Tar a folder
  • tar -czvf output.tar.gz folder Tar and gzip a folder
  • tar -xzvf input.tar.gz Untar and unzip a tar-ball

Drivers

Bootloader

USBNET (USBDNET)

-BLOB requires cdc_subset module (# modprobe cdc_subset)
-apparently uhci-hcd is the usb 1.0 driver from linux 2.4

TFTP

Fedora Red Hat Enterprise Linux (RHEL)

Compilers

Make