Skip to content

Instantly share code, notes, and snippets.

@csrutil
Forked from zyuzuguldu/advantaged_cp_mv.sh
Last active August 29, 2015 14:20
Show Gist options
  • Save csrutil/aea3fbbfdd11d48bb177 to your computer and use it in GitHub Desktop.
Save csrutil/aea3fbbfdd11d48bb177 to your computer and use it in GitHub Desktop.
wget http://ftp.gnu.org/gnu/coreutils/coreutils-8.23.tar.xz
tar xvJf coreutils-8.23.tar.xz
cd coreutils-8.23/
#wget http://zwicke.org/web/advcopy/advcpmv-0.5-8.23.patch
patch -p1 -i advcpmv-0.5-8.23.patch
./configure
make
#export FORCE_UNSAFE_CONFIGURE=1
sudo cp /bin/cp /bin/cp.backup
sudo cp src/cp /bin/cp2
sudo rm /bin/cp
sudo mv /bin/cp2 /bin/cp
sudo cp /bin/mv /bin/mv.backup
sudo cp src/mv /bin/mv2
sudo cp /bin/mv2 /bin/mv
sudo rm /bin/mv2
#vi ~/.bashrc
alias cp='cp -gR'
alias mv='mv -g'
#cp -R --progress-bar /Tecmint.com/ /data/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment