Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

bash copy file

cp SOURCE DEST
cp SOURCE1 SOURCE2 SOURCE3 SOURCEn DEST
Comment

how can i copy files in bash?

# from directory-to-directory
cp from_dir_name/file_name to_dir_name/new_file_name
# ex. cp Desktop/computer.jpeg Documents/Picture/pc.jpeg 

# new shortcut file
cp file_name new_file_name
# ex. cp computer.jpeg pc.jpeg

# copy multipler file into new directory
cp file_name file_name to_dir_name/
# ex. cp Desktop/computer.jpeg pc.jpeg Downloads/
Comment

PREVIOUS NEXT
Code Example
Shell :: PDF Acrobat ubunut 
Shell :: pip upgrade package 
Shell :: download entire website Linux terminal 
Shell :: install alacritty 
Shell :: cuda driver install in ubuntu 
Shell :: wsl zsh get ip 
Shell :: install formik 
Shell :: git revert one file 
Shell :: bash delete file 
Shell :: bash check if string contains substring 
Shell :: repository commands 
Shell :: linux extract tar.gz 
Shell :: surge flutter web 
Shell :: sed add word to end of line 
Shell :: for loop iteration in shell script 
Shell :: linux print system info 
Shell :: how to create a shortcut to a folder on linux 
Shell :: fuser install linux 
Shell :: close tcp port on mac 
Shell :: unzip rar 
Shell :: Count subdirectories within a directory 
Shell :: refresh desktop entries 
Shell :: cli kill what is listening on port 
Shell :: how to push another account git 
Shell :: docker compose latest version install ubuntu 
Shell :: remote origin remove 
Shell :: add ssh keys to github 
Shell :: pipenv install virtual at same path 
Shell :: The terminal process failed to launch: Path to shell executable "cmd.exe" does not exist. vscode 
Shell :: chmod 777 command in linux 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =