Skip to content

Instantly share code, notes, and snippets.

View zyuzuguldu's full-sized avatar
🛰️
Hijacking

zahid zyuzuguldu

🛰️
Hijacking
View GitHub Profile
@zyuzuguldu
zyuzuguldu / advantaged_cp_mv.sh
Last active April 21, 2019 08:23
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
@zyuzuguldu
zyuzuguldu / max_file_desc.sh
Last active April 21, 2019 08:22
maximum number of open file descriptors
~ $ vim /etc/security/limits.conf
# change the followings
# * hard nofile 10000
# * soft nofile 10000
# Then you may check limits
~ $ ulimit -Sn
~ $ ulimit -Hn
## Configure eth0
#
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
ONBOOT=yes
BOOTPROTO=static
NAME="System eth0"
IPADDR=10.1.35.132
NETMASK=255.255.255.0