Tag Info

Hot answers tagged

2

In order to have files deleted in destination when they are deleted in origin, you use the --delete option. rsync -vaz --delete <origin_folder> <destination_folder> Now destination will delete items within it when origin does.


1

There are several delete options to choose from here is the extract from the man rsync page. --delete delete extraneous files from dest dirs --delete-before receiver deletes before xfer, not during --delete-during receiver deletes during the transfer --delete-delay find deletions ...


1

There are as many opinions as there are people. I think the best way to create tomcat user to do as follows: # useradd -r -s /sbin/nologin tomcat # chown -R tomcat: /usr/local/tomcat It means, you will create system account. Info from man useradd: System users will be created with no aging information in /etc/shadow, and their numeric identifiers are ...


1

Following up on the answer by @terdon - when you do the test-step, and grub2-mkconfig does not find the Windows partition. Next, make sure you have the "ntfs-3g" package installed, so that your Linux system can read the Windows partition(s). sudo yum install ntfs-3g After installing that, when you run sudo grub2-mkconfig > /dev/null ... you ...


1

Warren Young's answer covers all the reasons you probably you probably don't want to and probably don't need to do this so please read it. But if you really have to and you really understand what you're doing, this command should do it for you: yum --disablerepo=* --enablerepo=C6.5* upgrade Basically it disables all the repos on your box and enables the ...


1

The description sounds almost as though you might need to configure /etc/gai.conf. But I'll hold on that for blacklisting IPv6. To prevent the IPv6 module from binding to the IPv6 networking stack, add the line below to "/etc/modprobe.d/blacklist.conf" (or a different file name): options ipv6 disable=1 Then, reboot. This will allow the loading of the ...


1

you can create a /home/html and tell apache/nginx/httpd whoever to use it. I cant elaborate, this depend on you web server. you can make a symbolic link from /var/www to /home/www cd /var mv www www.old mkdir /home/www ln -s /home/www /var/www If you have no use for /home, umount it, and mount vg_datastore-lv_home on /var/www (you may try to umount ...


1

Red Hat Linux source code back ports security updates. See https://access.redhat.com/security/updates/backporting CentOS rebuilds the source code for RHEL, so they inherit those back ports.. Including new device drivers for new hardware, etc. So the Red Hat / CentOS kernel is not a standard 3.10.0 kernel, it gets things back ported from new kernels and ...


1

Add this to last line of your ~/.bashrc: unalias ls and type source ~/.bashrc


1

clamscan --exclude='\.(jpg|jpeg|png|gif)$' \. is the . in the file extension (jpg|jpeg|png|gif) matches any of those strings $ pins the search to the end of the line This, therefore, should exclude all files ending in .jpg, .jpeg, .png, .gif


1

CentOS 6.5 is based on RHEL 6.5. The pattern changed with CentOS 7, which has two releases, one based on RHEL 7.0, the other on RHEL 7.1. You'll find all the details on the CentOS wiki (look for the "Archived Versions" section).


1

Yes. CentOS uses the same major and minor release numbers as the RHEL version they are rebuilding.



Only top voted, non community-wiki answers of a minimum length are eligible