Skip to content

Tag: centos

ldconfig can’t find lib in standard location

EDIT: Cloudera says that CentOS is supported please check Cloudera manual install as they have instructions on how to do so, it relies on libpython2.6.so.1.0 and libsasl2.so.2. When installing a package ( impala from cloudera repository ) I am told that libsasl2.so.2 and libpython2.6.so.1.0 are missing. After…

How to replace recursively part of file name in bash

I have a directory having subdirectories containing images files with a wrong name such like filename.jpg.jpg i want to replace this recursiveley with filename.jpg i have tried: or but none works thank you Answer If you have a rename utility which uses perl regular expressions, then use the below command :

how to tell the version number of dash?

I have a dash shell installed as /bin/dash. I checked the manual of dash, which is the same as the POSIX shell manual, and there is nothing there to tell the version of the shell. dash –version does not work. How to tell the version number of dash I have?? Added: some people are pointing me to Ubuntu co…

Search and replace file content using shell script

I want to search and replace specific value in a file, here is the content of the file I want to replace DocumentRoot /var/www/html with DocumentRoot /var/www/html/centos I tried the following This is not working, can someone point me to the right direction. Thanks Answer The line you are trying to replace is…

Remote access to web server on linux

I have access to a server running CentOS 6.7 on which I installed apache and configured the /etc/httpd/conf/httpd.conf file. I can see the webpage if I ssh to the server and run but I would like to access it using a real browser. If I try to access it from my computer, it tells me that this webpage is unavail…

cassandra dead but pid file exists on amzon centos6

I am trying to install cassandra on amazon centOS6.0 for that i follow from Caassandra After successful install i am able to start the cassandra service but when trying to check status it throws “cassandra dead but pid file exists” error. Any help. Cassandra LOG: System LOG: When i type cassandra …