Changes between Initial Version and Version 1 of Docs/Prog/Manual/Foundation/Shell-Linux-Windows-Reference


Ignore:
Timestamp:
12/15/21 12:03:42 (3 years ago)
Author:
Don Wilson
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/Prog/Manual/Foundation/Shell-Linux-Windows-Reference

    v1 v1  
     1[[TOC(heading=Table of Contents, Docs/Prog/Manual/*)]]
     2= Shell operations - Linux / Windows command line Reference =
     3Linux shell commands are lower case. Windows command line commands are not case sensitive. In linux path and filenames are case sensitive. Windows path and file names are not case sensitive. Linux paths use forward slashes “/” as separators. Windows paths use backslashes “\” as separators. Linux paths do not use disk drive letters. Windows paths may include disk drive letters such as “C:\tmp”.
     4
     5||'''Linux'''||'''Windows cmd line'''||'''Description'''||
     6||cat ''file''||TYPE ''file''||Display the contents of a text file||
     7||cd ''path''||CHDIR ''path''[[BR]][[BR]]''or''[[BR]][[BR]]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.||
     8||chmod ''params file''||ATTRIB ''params'' ''file''||Set 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.||
     9||cmp ''file1'' ''file2''||FC ''file1'' ''file2''||Compare two files to check for binary differences||
     10||cp ''from'' ''to''||COPY ''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.||
     11||df||fsutil volume diskfree c:(or other drive letter) (must run as admin)||Output disk size and free space information||
     12||echo ''text''||ECHO ''text''||Output some text, commonly redirected to a device or file. For example, '''echo “hello” > /dev/ttyS0''' will send the message “hello” out the serial port.||
     13||kill ''pid''||N/A||End a running process. Use the “ps” command first to determine the process id (pid).||
     14||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.||
     15||mkdir ''path''||MKDIR ''path''[[BR]][[BR]]''or''[[BR]][[BR]]MD ''path''||Create a directory.||
     16||mount ''params dev mntpt''||N/A||Enable access to a file system such as a USB flash drive.||
     17||mv ''from to''||RENAME ''from to''[[BR]][[BR]]''or''[[BR]][[BR]]REN ''from to''||Rename a file.||
     18||ps||N/A||Show list of running processes along with their pids (process ids).||
     19||pwd||CD||Display the current directory.||
     20||rm ''file''||DEL ''file''||Delete a file.||
     21||rmdir ''path''||RMDIR ''path''[[BR]][[BR]]''or''[[BR]][[BR]]RD ''path''||Remove a directory. The directory must be empty.||
     22||umount||N/A||Disconnect from a file system.||