Category: linux

GIT : merging a single commit from a branch to another branch 2

GIT : merging a single commit from a branch to another branch

Merging a single commit to another branch This is called cherry-pick $> git cherry-pick eba87949886ca99c7383266ae318c54401d786ec It might fail with this : $> git cherry-pick eba87949886ca99c7383266ae318c54401d786ec fatal: bad object eba87949886ca99c7383266ae318c54401d786ec In that case, you have to...

Command-line upload and download on linux 0

Command-line upload and download on linux

[WARNING] This will expose unencrypted the login credentials. To upload : $> curl -T my-local-file.txt ftp://ftp.domain.com --user username:password To download : $> curl -uusername ftp://ftp.domain.com/myfile > savehere.txt      

Copy directory using scp 0

Copy directory using scp

Scp usage It is easy to use scp, however how do you copy a directory, without copying the directory name? Solution : scp -r public@10.64.6.11:/home/public/site/* /var/www/ About this If you write /* a the...

/bin/sh: chrpath: command not found 0

/bin/sh: chrpath: command not found

  Solution: sudo yum install chrpath Note : You might then have problems like this : chrpath -r `readlink -f arch/linux-i686/thelib`:`readlink -f ../arch/linux-i686/stage/opt/haivision/lib` arch/linux-i686/crtmpserver/crtmpserver `arch/linux-i686/crtmpserver/crtmpserver' probably isn't a 64-bit LSB-first ELF file. Solution :...

[HELP NEEDED] Increase space of home folder in CentOS 6 0

[HELP NEEDED] Increase space of home folder in CentOS 6

Problem : /dev/mapper/vg_centos-lv_home has become full, however there is still some free space on device, what's going on?!? [root@centos ~]# df Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/vg_centos-lv_root 46287864 4627216 39309340 11% / tmpfs...