LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Learning Linux and commands like dd (https://www.linuxquestions.org/questions/linux-newbie-8/learning-linux-and-commands-like-dd-4175514427/)

Eontraveler 08-12-2014 06:37 AM

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??

rtmistler 08-12-2014 06:51 AM

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.

Eontraveler 08-12-2014 07:06 AM

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 (Post 5219470)
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.


rtmistler 08-12-2014 10:11 AM

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.


All times are GMT -5. The time now is 10:38 PM.