School Assignment? Project Due Tomorrow? Chat LIVE With A Programming Expert!

Welcome to Dream.In.Code
Become an Expert!

Join 307,148 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,723 people online right now. 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 - 08: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 - 02: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 - 06:24 AM
Post #3
That is some good stuff man.
Go to the top of the page
+Quote Post

lanec42
**



post 8 Jun, 2008 - 07: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 - 03: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: 11/21/09 03:56PM

Live Help!

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter Fan Us On Facebook

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month