Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

copy all files from one directory to another

cp -a /source/. /dest/

The -a option is an improved recursive option, 
that preserve all file attributes, and also preserve symlinks.

The . at end of the source path is a specific cp syntax 
that allow to copy all files and folders, included hidden ones.
Comment

PREVIOUS NEXT
Code Example
Shell :: create github repo with curl 
Shell :: chown -R www-data:www-data 
Shell :: trimspace in bact file 
Shell :: openssh setup firewall on windows 
Shell :: powershell qr code generator 
Shell :: linux find partial name 
Shell :: open jar file with command prompt 
Shell :: how to check maximum ram memory capacity support size in linux 
Shell :: multiple commands one line linux 
Shell :: rearrange pdf pages linux 
Shell :: search for a filetype extension PowerShell 
Shell :: bash if statement 
Shell :: deploy on heroku 
Shell :: WSL Updating the Ubuntu OS 
Shell :: checking remote status in git 
Shell :: read lines bash script 
Shell :: Failed to mount cgroup at /sys/fs/cgroup/systemd: Operation not permitted 
Shell :: git delete commit 4785cd1e041 
Shell :: how to install global package golang 
Shell :: how to change port for xampp 
Shell :: grep all lines after first match 
Shell :: redux installation 
Shell :: ufw block ip 
Shell :: creating bucket in aws cli 
Shell :: how to edit old commit message in git 
Shell :: install npm package globally 
Shell :: checkout remote git branch 
Shell :: gitignore a folder recursively 
Shell :: disable swap kubernetes ansible 
Shell :: create new remote branch 
ADD CONTENT
Topic
Content
Source link
Name
6+4 =