I want to know how to copy a folder from a desktop to an external disk like pen-drive using terminal in Ubuntu 16.04.  The name of the disk is /dev/sdb1 in my system.  What is the exact command for copying a folder into the pen-drive?
65256
I am trying to copy the contents of a folder to another folder in a different directory using terminal.  Would somebody be able to provide me an example of the command line syntax required to achieve this?
118965
Is there a clever way to do copy and move operations or a command to duplicate a file, without having to do a cd, then mv after, at the same folder?  For example, I have to run the following:  mv /folder1/folder2/folder3/file.txt /folder1/folder2/folder3/file-2013.txt   Note that the directory to where I'm moving the file is the same, but I have to put the whole path again and sometimes it gets annoying. I'm curious to know if there's another way to do that without having to put the whole path again, because the operation would be done in the same path.
27261
I need to be able to copy about 2TB of data from an external drive (single USB external disk) to a another external drive (Drobo attached via Firewire).  Finder is not an option. If it hits any problem, it stops the process and I have to figure it out why it failed and start over. It could take me months to get through it.  I've read about CP and RSYNC but I'm not too familiar and I'm afraid I might get some of the switches wrong and miss files, or screw up the file dates, or worst...  Can anyone suggest how I might pull this off with minimum risk and cost?
1383
I want to enter the following folder in the terminal:  Milano, Torino (Jan)-Compressed   How should I write the command cd to enter this directory?  Spaces and several other special characters like \, *, ), ( and ? cause problems when I try to use them in the command line or scripts, e.g.:    $ cd space dir bash: cd: space: No such file or directory  $ cat space file cat: space: No such file or directory cat: file: No such file or directory  $ cat ( bash: syntax error near unexpected token `newline'  $ echo content &gt;\ &gt; ^C  $ ls ? (  )  *  ?  \   How do I enter file or directory names that contain special characters in the terminal in general?
104672
I'm seeking a way to create directory and change my present working directory to newly created directory just by using a single command. How can I do this?  i.e Instead of doing  user@Computer:~$ mkdir NewDirectory user@Computer:~$ cd NewDirectory user@Computer:~/NewDirectory$    I want to do  user@computer:~$ **command** NewDirectory user@Computer:~/NewDirectory$   What can the command be?
2271
To be short, I want to copy a folder to a location /usr/share/screenlets/.... in Ubuntu 10.04 system. I tried by logging in as root from terminal giving su.   I even changed my user account type to ADMINISTRATOR; Yet, no use. PASTE option in the context menu's list in the folder /usr/share/... is INACTIVE.  How can I copy those files?
5383
Is there any way to create a bootable Ubuntu USB flash drive from the terminal without using any third-party applications like , , ,  etc.  I tried to create a bootable Ubuntu flash drive with dd method,  sudo umount /dev/sdb sudo dd if=/path/to/ubuntu.iso of=/dev/sdb bs=1M   It creates files on the USB disk, but when I try to boot the USB disk it shows an Operating System Not Found error.
26983
I've recently installed Ubuntu 11.10 on my laptop, but I can't do anything with my 1.5TB external drive, and my 500GB because I don't have write permission. Are there any specific commands I can use in the terminal to set the read/write permissions?  The external is NTFS, and the 500GB is ext4.
48752
I have read about copying files with terminal but these examples will help me a lot. So here is what I want to do:  Examples:   I have a file in /home/levan/kdenlive untitelds.mpg and I want to copy this file to /media/sda3/SkyDrive and do not want to delete any thing in SkyDrive directory. I have a file in /media/sda3/SkyDrive untitelds.mpg and I want to copy this file to /home/levan/kdenlive  and do not want to delete any thing in kdenlive directory  I want to copy a folder from home directory to sda3 and do not want to delete any thing on sda3 directory and opposite I want to cut a folder/file and copy to other place without deleting files in that directory I cut it into.
81133
I am new to Ubuntu.  Whenever I open a terminal my current working directory /home/Varun (as found by typing pwd).  Is there any way I can make the terminal's path to be set as /home/Varun/Desktop/Java Files when it opens?
111238
I'm try to change to my Desktop directory from the terminal.  Running  cd /home/desktop   gives an error in the terminal saying no directory found.  What am I doing wrong?
26545
I need to get a text list of all the files (hidden and visible) off a hard drive, subfolders included. Ideally the list would have the filename, path, size, and creation (or last modified) date if possible. Can someone please tell me what command I need? Also, is it possible to have this created as a .csv file or something similar for use in Excel?  I am not super proficient with Ubuntu so an explanation of each command item would also be greatly appreciated.
50176
I have created an Ubuntu16.04 'Persistent Pendrive' which was working perfectly for about a month, but now it seems to be running out of space.  Specifically: I used the information in , see also , to create my Pendrive on a SanDisk 32GbUltra Flair and I've used it to run apache and php as a mini development server on various hardware.  However - I'm now getting 'out of space' errors when I try to run sudu apt-get update.  I was under the impression that any new software or changes would be applied to the persistent partition, not the OS partition.  I'm happy enough to start again, but has anyone else had this, or know how to prevent it?
23627
Is it possible for me to make Ctrl+C perform a copy command if there is highlighted text in the terminal? Otherwise, it should retain its normal behavior.  (If there is a terminal that can do this other than gnome-terminal, that's probably fine too.)
72021
When i use the cp or move command in a terminal window, i'm currently with bash in a certain folder like this.  NES@server:~/Desktop/dir1$   And now i wanna copy a file from here ~/anotherdir/dir2 into the current chosen folder in bash (dir1) i would use the command  cp ~/anotherdir/dir2/file ~/Desktop/dir1   does a shortcut string exist to refer to the current chosen directory? So that in this example i don't have to provide the full path to the target dir, but the command knows it should use the current chosen directory in bash? i.e. as ~ stands for the home directory?
23385
I know that touch command creates a file:  touch test1.txt   but how I can create a file and its full path?  for example my desktop contains nothing:  ~/Desktop/$ ls ~/Desktop/$   and I want to create 1.txt in ~/Desktop/a/b/c/d/e/f/g/h/1.txt. Can I do this with a simple command like:  $ touch ~/Desktop/a/b/c/d/e/f/g/h/1.txt   instead of create full path manually and then create the file?
8196
I plugged in my external harddrive (which was formatted on my Mac into HFS+ journaled) to my Ubuntu desktop 9.04 64bit.  I am not able to get the drive to mount with write capability, how do I do that?  Right now all I'm getting is read access, I tried  sudo mount -t hfsplus /dev/sdf2 /media/"Portable HD"   but that still gave me only read access...  ideas??