Skip to content

Instantly share code, notes, and snippets.

@zyuzuguldu
Last active April 21, 2019 08:23
Show Gist options
  • Save zyuzuguldu/41aa1b82f08d99408b52 to your computer and use it in GitHub Desktop.
Save zyuzuguldu/41aa1b82f08d99408b52 to your computer and use it in GitHub Desktop.
linux advanced cp mv
~ $ 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