LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-12-2014, 07:37 AM   #1
Eontraveler
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Rep: Reputation: Disabled
Smile Learning Linux and commands like dd


Hello Forum
I like to Learning Linux and commands like dd.
I se many small examples of how to ues dd command but I want more.
Where is full manual??
 
Old 08-12-2014, 07:51 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,105
Blog Entries: 10

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
Welcome to LQ!

One good place to check is The Linux Documentation Project.

Another is to try and type "info" at a command prompt and it usually brings you into the info utility where you can learn about commands. Also if you type "man <command>" such as "man dd" you get the manual page on the command specified.

For scripting there are many guides, here are some:
  1. blog entry on bash programming
  2. Bash Scripting Guide for Beginners
  3. Advanced Bash Scripting Guide

I also found a pretty good cheat sheet by searching under google for "Linux command line" http://www.cheatography.com/davechil...-command-line/

Be careful with dd by the way, that is a way to byte for byte copy from one place to another; typically examples employ the use of root or sudo (same as root) because you need those higher privileges to perform disk copies. The caution is that the destination "of=" could accidentally be your working disk if you type that unintentionally or copy a command word for word not knowing the details of what it really will perform.
 
Old 08-12-2014, 08:06 AM   #3
Eontraveler
LQ Newbie
 
Registered: Aug 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Ok thank's
I am looking for how to,
make a USB 32 GB key bootable with a Ubuntu.iso I have just downloaded .
I tested this command with the result "No such file or directory"
sudo dd if=ubuntu.iso of=/dev/sdb bs=512k

The iso file is already on the USB key

Thanks


Quote:
Originally Posted by rtmistler View Post
Welcome to LQ!

One good place to check is The Linux Documentation Project.

Another is to try and type "info" at a command prompt and it usually brings you into the info utility where you can learn about commands. Also if you type "man <command>" such as "man dd" you get the manual page on the command specified.

For scripting there are many guides, here are some:
  1. blog entry on bash programming
  2. Bash Scripting Guide for Beginners
  3. Advanced Bash Scripting Guide

I also found a pretty good cheat sheet by searching under google for "Linux command line" http://www.cheatography.com/davechil...-command-line/

Be careful with dd by the way, that is a way to byte for byte copy from one place to another; typically examples employ the use of root or sudo (same as root) because you need those higher privileges to perform disk copies. The caution is that the destination "of=" could accidentally be your working disk if you type that unintentionally or copy a command word for word not knowing the details of what it really will perform.
 
Old 08-12-2014, 11:11 AM   #4
rtmistler
Moderator
 
Registered: Mar 2011
Location: Sutton, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 4,105
Blog Entries: 10

Rep: Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524Reputation: 1524
I believe that should work; however with not having the ISO file on the USB prior but instead having the ISO file on your hard drive and using the proper device letter path for your USB.

As an example, say your main drive is /dev/sda1 and you end up having say /home/myuser path there. Place ubuntu.iso into /home/myuser/ubuntu.iso and be in that directory when you issue the command.

The dd command is a byte for byte copy and will overwrite the entire USB drive with the ubuntu.iso image file. As a result if the ubuntu.iso file was already on the USB drive, it won't work because the destination is at the same point where the originating file is coming from.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Learning Linux Commands Sha-bangs Linux - Newbie 5 06-28-2014 07:25 PM
learning linux commands ermoka Linux - Newbie 6 04-12-2012 06:38 AM
LXer: Learning Linux Commands: ls LXer Syndicated Linux News 0 02-02-2012 06:40 AM
LXer: Learning Linux commands: dd LXer Syndicated Linux News 0 11-17-2011 08:30 AM
LXer: Learning About Linux Commands LXer Syndicated Linux News 0 08-25-2006 05:54 PM


All times are GMT -5. The time now is 07:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration