wiki:Docs/Prog/Manual/Foundation/Shell-Linux-DOS-Reference

Table of Contents

  1. Application Libraries
  2. Database Libraries
    1. MySQL Client
    1. About SQLite
    2. SQLite Library (libsql)
      1. Using libsql
    3. SqlBuilder? Class
    4. SQLite++ Class
    5. Using SQLite++ with SqlBuilder?
  3. Standard 825 Library with Application class (lib825)
    1. Utility Functions
  4. Standard 825 Library with EVENT features (lib825ev)
  5. Communications Functions
  6. CComm
    1. Member Functions
      1. Send
        1. Description
        2. Return value
      2. Process
        1. Description
      3. AddRcvEvent
        1. Description
        2. Example
    2. See Also
  7. CCommClient
      1. Constructor
      2. Member Functions
        1. Description
        2. Example
    1. See Also
  8. CCommSerial
    1. Constructors
        1. Parameters
        2. Examples
        3. Example
    2. Member Functions
      1. SetPort
        1. Parameters
        2. Return Value
      2. Open
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      3. Close
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      4. SetParameters
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      5. IsReady
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      6. SetRTS
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
    3. See Also
  9. CCommServer
      1. Constructor
      2. Member Functions
        1. Description
        2. Example
    1. See Also
  10. Analog Output (DAC Digital to Analog Conversion) Functions
  11. GetDAC
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  12. GetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  13. GetDACRangeFromIndex
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  14. GetIndexFromDACRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  15. SetDACFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  16. SetDACOutputRange
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  17. SetDACPercent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  18. SetDACReg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  19. SetDACTrackGrossNet
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  20. SetDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  21. StopDACTrackScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  22. Display Functions
  23. CBitmap
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. LoadBitmp?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. DeleteBitmap?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      3. Draw
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      4. GetWidth?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. GetHeight?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      6. GetColorCnt?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. GetColorsAdded?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. GetError?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. ReclaimColors?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  24. ClearLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  25. DisplayStr = DEPRECATED, DOES NOT CURRENTLY WORK!!! See DisplayText …
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  26. DisplayText
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  27. GetX
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  28. GetY
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  29. InitLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  30. IsFontLoaded
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  31. LocateLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  32. PrintLCD
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  33. PrintLCDbutton
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  34. PrintLCDfont2
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  35. ReadFont
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  36. SetBkColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  37. SetCurColor
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  38. File Functions
  39. CFile
    1. Constructors
        1. Parameters
        2. Examples
    2. Member Functions
      1. Open
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Close
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetSerial?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      4. ReadLine?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      5. DeleteFile?
        1. Parameters
        2. Return value
        3. Remarks
        4. Examples
      6. IsOpen?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      7. IsReady?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      8. SetRTS
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      9. GetFile?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      10. Print
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      11. SetNonBlocking?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      12. Read
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      13. Write
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      14. GetBytesRead?
        1. Parameters
        2. Return Value
        3. Example
      15. GetbytesWritten?
        1. Parameters
        2. Return Value
        3. Example
      16. Seek
  40. IsMounted
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  41. Form Functions
  42. CForm
    1. Methods
      1. EnableItem
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. FindName
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  43. EVENT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  44. EVENT_FLAG_SHOW
    1. Examples
    2. See Also
  45. EVENT_SHOW_BTN_CONTENT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  46. FORM_ADD_BUTTON
    1. Parameters
    2. Return Value
    3. Remarks
      1. Button Styles
    4. Examples
    5. See Also
  47. FORM_ADD_INPUT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  48. FORM_DONE_ESCAPE
    1. Example
      1. See Also
  49. FORM_DONE_LEFT_ARROW
    1. Example
      1. See Also
  50. FORM_HIDE
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  51. FORM_INIT
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  52. FORM_IS_UPDATED
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  53. FORM_RUN
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  54. FORM_SHOW
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  55. IN_EVENT_HIDE_FORM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  56. IN_EVENT_SHOW_FORM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  57. IN_EVENT_WRITE_DATA
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  58. Input / Output (Digital I/O) Functions
  59. GetInput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  60. GetInputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  61. GetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  62. SetDIOCounter
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  63. SetOutput
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  64. SetOutputMask
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  65. StartDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  66. StartRepeatIO
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  67. StopDIOPulse
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  68. StopRepeatIO
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  69. Keypad/Sound Functions
  70. ClearKeyBuffer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  71. KeyPadInsertKey
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  72. KeyPadSetUSBEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  73. OpenBeeper
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  74. PlayNotes
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  75. WaitKeypress
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  76. Process Functions
  77. GetProcessID
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  78. GetProcessIDExcludeSelf
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  79. KillProcess
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  80. ResetPrevGrossWt
  81. ResetPrevNetWt
  82. ResetPrevTareWt
  83. test
  84. String Functions
  85. FloatToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  86. IntToStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  87. StrFmt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  88. StrFmtLen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  89. StrToFloat
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  90. StrToInt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  91. StrTrimLeft
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  92. StrTrimRight
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  93. Ticket Functions
  94. CTktFlds
    1. Constructor
        1. Parameters
        2. Examples
    2. Member Functions
      1. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Examples
      2. Set
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
      3. SetEvent?
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
  95. PrintTkt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  96. Time and Date Functions
  97. CMillisecondTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  98. CSleep
    1. Constructor
        1. Parameters
        2. Example
    2. Member Functions
      1. SetTime?
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Pause
        1. Parameters
        2. Retrun Value
        3. Remarks
        4. Example
  99. CTimer
    1. Constructors
        1. Parameters
        2. Example
    2. Member Functions
      1. Set
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
      2. Clear
        1. Parameters
        2. Return Value
        3. Remarks
        4. Example
  100. DoSleep
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  101. GetDateStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  102. GetLinuxTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  103. GetTimeStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  104. IsTimeChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  105. ResetPrevTime
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  106. SleepMilliseconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  107. SleepSeconds
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  108. Utility Functions
  109. GetKernelVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  110. GetKernelVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  111. GetLoaderVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  112. GetLoaderVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  113. GetMemFree
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  114. GetMnBdVer
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  115. GetMnBdVerStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  116. Weighing Functions
    1. Minimal Weight Indicator Sample Program
  117. CheckWIM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  118. FormatGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  119. FormatNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  120. FormatTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  121. GetBelowZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  122. GetCapacity
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  123. GetCenterZero
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  124. GetCurUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  125. GetDecimal
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  126. GetGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  127. GetInterval
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  128. GetMotion
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  129. GetNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  130. GetNumScales
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  131. GetOverCap
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  132. GetProcessScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  133. GetSecUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  134. GetTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  135. GetUnitsLabel
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  136. GetWtError
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  137. IsGrossWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  138. IsNetWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  139. IsTareWtChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  140. IsWtStatusChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  141. IsWtUnitsChanged
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  142. MnBdClearEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  143. MnBdClose
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  144. MnBdGetErr
  145. MnBdGetErrMsg
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  146. MnBdGetErrMsgStr
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  147. MnBdOpen
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  148. MnBdProcess
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  149. MnBdRead
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  150. MnBdRequest
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  151. MnBdSetEvent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  152. MnBdShutdown
  153. MnBdStartup
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  154. ResetPrevGrossWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  155. ResetPrevNetWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  156. ResetPrevTareWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  157. ResetPrevWtStatus
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  158. ResetPrevWtUnits
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  159. SetTareCurrent
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  160. SetTareValue
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  161. SetWIM
    1. Parameters
    2. Return Value
    3. Remarks
    4. Example
    5. See Also
  162. StartRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  163. StartRepeatWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  164. StopRepeatMulti
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  165. StopRepeatWt
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  166. ZeroScale
    1. Parameters
    2. Return Value
    3. Remarks
    4. Examples
    5. See Also
  167. Development Environment
  168. Application Signing
  169. Debugging
    1. GDB
  170. Setup for Software Development
      1. About
      2. Features of the Cardinal 825 Programming Environment
      3. Required Files
      4. Installing the Environment
      5. Starting the Environment
      6. Using the Environment
        1. Welcome Screen
        2. Project Explorer
        3. Task Repositories
        4. Task Queries
        5. Subversion
        6. Hyper-V
  171. Version Control
    1. Subversion
      1. About Subversion
      2. Subclipse for Eclipse
        1. Installing Subclipse
          1. Importing Projects Using Subclipse
  172. Device Support
  173. Device Drivers
    1. Overview
  174. Beeper
  175. DIO
    1. Digital I/O
    2. DIO Events
      1. About
      2. The Code
    3. DIO Counting
      1. Description
      2. Example
  176. Display
    1. Fonts
  177. Network
    1. Network File System (NFS)
    2. Weight Server -- Network Access
    3. Network Programming
      1. 825 TCP/IP Server Example
      2. 825 TCP/IP Client Example
    4. Send E-mail from 825
  178. Serial Ports
    1. Using Serial Ports for Linux Shell
    2. Generic Serial Port Use
  179. USB Support
    1. 825 USB A Ports (2)
      1. USB Mass Storage
        1. Accessing USB storage from a program
      2. USB Keyboards
      3. USB Printing
        1. Compatible USB Printers
      4. USB Hubs
    2. 825 USB B Port (1)
      1. USB to PC communications
  180. Weighing
    1. Get Weight
      1. Command prompt testing
      2. Access the weight data from a program
        1. Example of simple weighing program
        2. Example of high Speed weighing of two scales using total mode
  181. Foundation
  182. Application Mode Startup
    1. Introduction
    2. Modules
    3. Appmenu Shell Script
    4. Mounts
    5. Support Applications
  183. Shell operations - Linux / DOS Reference

Shell operations - Linux / DOS Reference

Linux shell commands are lower case. DOS commands are not case sensitive. In linux path and filenames are case sensitive. DOS path and file names are not case sensitive. Linux paths use forward slashes “/” as separators. DOS paths use backslashes “\” as separators. Linux paths do not use disk drive letters. DOS paths may include disk drive letters such as “C:\tmp”.

LinuxDOSDescription
cat fileTYPE fileDisplay the contents of a text file
cd pathCHDIR path

or

CD path
Change directory. A space is required for Linux. For example, in DOS you may type “CD\” to change to the top level directory. In Linux type “cd /” to change to the top level directory.
chmod params fileATTRIB params fileSet file mode attributes. Common linux modes are “read”, “write”, “executable”. DOS uses file extensions such as EXE or COM for designate files as executable. Linux does not use extensions for executable files. Instead set the executable file mode. For example,chmod +x indicator sets the “indicator” file to be executable.
cmp file1 file2FC file1 file2Compare two files to check for binary differences
cp from toCOPY from {to}Copy a file or files from one location to another. In DOS you may omit the “to” path to copy to the current directory. In Linux specify the “to” path as a period “.” to copy to the current directory.
echo textECHO textOutput some text, commonly redirected to a device or file. For example, echo “hello” > /dev/ttyS0 will send the message “hello” out the serial port.
kill pidN/AEnd a running process. Use the “ps” command first to determine the process id (pid).
ls {path}DIR {path}List files in a directory. If path is not specified the listing will show files in the current directory. For Linux the parameter “-l” is useful for a detailed listing. For example,ls –l /usr provides a detailed directory listing showing file attributes and date stamp.
mkdir pathMKDIR path

or

MD path
Create a directory.
mount params dev mntptN/AEnable access to a file system such as a USB flash drive.
mv from toRENAME from to

or

REN from to
Rename a file.
psN/AShow list of running processes along with their pids (process ids).
pwdCDDisplay the current directory.
rm fileDEL fileDelete a file.
rmdir pathRMDIR path

or

RD path
Remove a directory. The directory must be empty.
umountN/ADisconnect from a file system.
Last modified 8 years ago Last modified on Sep 7, 2010, 12:35:40 PM