LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-11-2009, 12:32 PM   #1
atikna2001
LQ Newbie
 
Registered: Dec 2008
Distribution: debian
Posts: 7

Rep: Reputation: 0
meaning of dd if=/dev/zero of=abc bs=1024 count=1000


hi,
can someone here tell me what the following commands do?
dd if=/dev/zero of=abc bs=1024 count=1000
mkdosfs abc
mount -o loop abc /mnt/floppy
 
Old 03-11-2009, 12:48 PM   #2
AuroraCA
Member
 
Registered: Jul 2008
Location: Northern CA USA
Distribution: Ubuntu, Slackware, Gentoo, Fedora, Red Hat, Puppy Linux
Posts: 370

Rep: Reputation: 35
The manual pages for Linux explain all commands and options. You can find the manual pages for specific pages in Linux with the comand:

man [command]

for example:

Code:
man dd
Code:
man mkdosfs
Code:
man mount
You can also type "man dd", "man mkdosfs" or "man mount" into Google.

Last edited by AuroraCA; 03-11-2009 at 12:49 PM.
 
Old 03-11-2009, 12:48 PM   #3
tux99
LQ Newbie
 
Registered: Mar 2009
Posts: 20

Rep: Reputation: 3
Quote:
dd if=/dev/zero of=abc bs=1024 count=1000
writes 1000 blocks of 1024 bytes length (= 1024000 bytes in total, approx. 1Mbyte) of binary zeros into the file 'abc'.

Quote:
mkdosfs abc
creates a MS-DOS filesystem (FAT) on the file 'abc' (using it like a disk image)

Quote:
mount -o loop abc /mnt/floppy
mounts the file 'abc' using the loop device as if it was a disk on the mount point /mnt/floppy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set linux environment variable like abc.abc (With DOT in the string) super_hill Linux - General 1 12-03-2008 07:37 PM
dd if=/dev/zero of=/dev/sda bs=512 count=1...oh noes!!! CoffeeKing!!! Linux - General 14 05-14-2008 08:44 PM
meaning of sda1 , dev ? SemperFidelis Linux - Newbie 3 12-26-2007 03:27 AM
The meaning of "/dev/md0: No md super block found"? PhillipHuang Linux - Software 6 01-10-2007 07:37 PM
gmplayer message at start-"echo 1024 > /proc/sys/dev/rtc/max-user-freq" Mutation_1101 Slackware 7 01-11-2006 07:46 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration