Page 1 of 1

Common Linux & Dos commands Broken down, showing their similarity, differances, & syntax. Rate Topic: ***** 2 Votes

#1 no2pencil  Icon User is offline

  • Toubabo Koomi
  • member icon

Reputation: 5313
  • View blog
  • Posts: 27,216
  • Joined: 10-May 07

Post icon  Posted 21 August 2007 - 09:55 AM

Common Linux & Dos commands, broken down, showing their similarity, differances, & syntax.
These are listed by :
Linux command : dos command
Linux command is in lower case, followed by options.
Dos command is in upper case, followed by options.

The syntax of the linux commands was gathered via the man pages, & the syntax for the dos command was gathered via the /? option.

List a directories contents
ls : dir
ls [OPTION]... [FILE]...

DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N] [/O[[:]sortorder]] [/P] [/Q] [/S] [/T[[:]timefield]] [/W] [/X] [/4]



Copy files and directories
cp : copy
cp [OPTION]... SOURCE DEST
cp [OPTION]... SOURCE... DIRECTORY
cp [OPTION]... --target-directory=DIRECTORY SOURCE...

COPY [/V] [/N] [/Y | /-Y] [/Z] [/A | /B ] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination [/A | /B]]



Search for files in a directory hierarchy
find : dir /s
find [-H] [-L] [-P] [path...] [expression]

dir /s Displays files in specified directory and all subdirectories.



Delete files
rm : del
rm [OPTION]... FILE...

DEL [/P] [/F] [/S] [/Q] [/A[[:]attributes]] names



Delete directories
rm -r : rmdir
rm -r, -R, --recursive

RMDIR [/S] [/Q] [drive:]path



Create a directory
mkdir : mkdir
mkdir [OPTION] DIRECTORY...

MKDIR [drive:]path




Copy a files contents to standard output
cat : type
cat [OPTION] [FILE]...

TYPE [drive:][path]filename



Create the file system
mke2fs: format
mke2fs [ -c | -l filename ] [ -b block-size ] [ -f fragment-size ] [ -g blocks-per-group ] [ -i bytes-per-inode] [ -j ] [ -J journal-options ] [ -N number-of-inodes ] [ -n ] [ -m reserved-blocks-percentage ] [ -o  creator-os  ]  [ -O feature[,...]  ] [ -q ] [ -r fs-revision-level ] [ -E extended-options ] [ -v ] [ -F ] [ -L volume-label ] [ -M last-mounted-directory ] [ -S ] [ -T filesystem-type ] [ -V ] device [ blocks-count ]

FORMAT volume [/FS:file-system] [/V:label] [/Q] [/A:size] [/C] [/X]
FORMAT volume [/V:label] [/Q] [/F:size]
FORMAT volume [/V:label] [/Q] [/T:tracks /N:sectors]
FORMAT volume [/V:label] [/Q] [/1] [/4]
FORMAT volume [/Q] [/1] [/4] [/8]



Is This A Good Question/Topic? 2
  • +

Replies To: Common Linux & Dos commands

#2 kamban  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 12-September 07

Posted 12 September 2007 - 03:42 AM

thanks any important code send my email
Was This Post Helpful? 0
  • +
  • -

#3 Thorian  Icon User is offline

  • Pirate Medic
  • member icon

Reputation: 22
  • View blog
  • Posts: 5,904
  • Joined: 06-June 02

Posted 12 September 2007 - 07:24 AM

That is some good stuff man.
Was This Post Helpful? 0
  • +
  • -

#4 lanec42  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 0
  • View blog
  • Posts: 229
  • Joined: 26-March 08

Posted 08 June 2008 - 08:06 PM

AH! Very cool.
Was This Post Helpful? 0
  • +
  • -

#5 nitin_c_c++  Icon User is offline

  • New D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 13
  • Joined: 18-June 08

Posted 26 June 2008 - 04:14 AM

Good details for basic command on both system

cheers
nitin
Was This Post Helpful? 0
  • +
  • -

#6 Shane Hudson  Icon User is offline

  • D.I.C Technophile
  • member icon

Reputation: 343
  • View blog
  • Posts: 1,286
  • Joined: 06-December 09

Posted 19 April 2011 - 02:13 PM

I have been learning linux commands very quickly lately, but am extremely suprised by the first one here.

Ls is the linux version of dir? Oh dear. I have been using dir on linux all the time! Haha
Was This Post Helpful? 0
  • +
  • -

#7 innuendoreplay  Icon User is offline

  • D.I.C Head

Reputation: 5
  • View blog
  • Posts: 62
  • Joined: 01-October 11

Posted 03 February 2012 - 07:38 PM

what it means the "Angular parenthesis"?? It is for indicate that is not obligatory to write that option?
Was This Post Helpful? 0
  • +
  • -

#8 rbk3ai  Icon User is offline

  • D.I.C Head

Reputation: -4
  • View blog
  • Posts: 64
  • Joined: 08-September 12

Posted 08 September 2012 - 07:52 AM

This is some good stuff!
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1