Welcome to Dream.In.Code
Getting Help is Easy!

Join 109,583 Programmers for FREE! Ask your question and get quick answers from experts. There are 1,529 online right now! We've got more than 500 tutorials and 2,000 snippets. Join and find out why Dream.In.Code is the #1 programming help community on the internet! Registration is fast and FREE... Join Now!



Common Linux & Dos commands

 
Reply to this topicStart new topic

> Common Linux & Dos commands, Broken down, showing their similarity, differances, & syntax.

Rating  5
no2pencil
Group Icon



post 21 Aug, 2007 - 09:55 AM
Post #1


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
CODE

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
CODE

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
CODE

find : dir /s
find [-H] [-L] [-P] [path...] [expression]

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


Delete files
CODE

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

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


Delete directories
CODE

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

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


Create a directory
CODE

mkdir : mkdir
mkdir [OPTION] DIRECTORY...

MKDIR [drive:]path



Copy a files contents to standard output
CODE

cat : type
cat [OPTION] [FILE]...

TYPE [drive:][path]filename


Create the file system
CODE

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]
Go to the top of the page
+Quote Post


Register to Make This Ad Go Away!

kamban
*



post 12 Sep, 2007 - 03:42 AM
Post #2
thanks any important code send my email
Go to the top of the page
+Quote Post

Thorian
Group Icon



post 12 Sep, 2007 - 07:24 AM
Post #3
That is some good stuff man.
Go to the top of the page
+Quote Post

lanec42
Group Icon



post 8 Jun, 2008 - 08:06 PM
Post #4
AH! Very cool.
Go to the top of the page
+Quote Post

nitin_c_c++
Group Icon



post 26 Jun, 2008 - 04:14 AM
Post #5
Good details for basic command on both system

cheers
nitin
Go to the top of the page
+Quote Post


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 9/8/08 12:40AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month