question_id
int64
88
79.9M
title_clean
stringlengths
14
150
body_clean
stringlengths
41
26.5k
full_text
stringlengths
63
26.6k
tags
stringlengths
4
105
score
int64
3
7.71k
view_count
int64
46
12.2M
answer_count
int64
0
79
link
stringlengths
56
125
24,288,616
Permission denied on accessing host directory in Docker
I am trying to mount a host directory in Docker, but then I cannot access it from within the container, even if the access permissions look good. I am doing sudo docker run -i -v /data1/Downloads:/Downloads ubuntu bash and then ls -al It gives me: total 8892 drwxr-xr-x. 23 root root 4096 Jun 18 14:34 . drwxr-xr-x. 23 r...
Permission denied on accessing host directory in Docker I am trying to mount a host directory in Docker, but then I cannot access it from within the container, even if the access permissions look good. I am doing sudo docker run -i -v /data1/Downloads:/Downloads ubuntu bash and then ls -al It gives me: total 8892 drwxr...
docker, file-permissions, fedora, mount, permission-denied
424
575,961
13
https://stackoverflow.com/questions/24288616/permission-denied-on-accessing-host-directory-in-docker
24,729,024
Open firewall port on CentOS 7
I am using CentOS 7 and I have to ensure that ports 2888 and 3888 are open. I read this article but this did not work because on CentOS 7 OS there is no iptables save command. Someone told me that the above URL is not valid for CentOS 7. and I should follow this . But this article is not clear to me on exactly what com...
Open firewall port on CentOS 7 I am using CentOS 7 and I have to ensure that ports 2888 and 3888 are open. I read this article but this did not work because on CentOS 7 OS there is no iptables save command. Someone told me that the above URL is not valid for CentOS 7. and I should follow this . But this article is not ...
centos, port, firewall
382
1,085,010
12
https://stackoverflow.com/questions/24729024/open-firewall-port-on-centos-7
104,055
How can I list the contents of a package using YUM?
I know how to use rpm to list the contents of a package ( rpm -qpil package.rpm ). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM . How can YUM be used to achieve this?
How can I list the contents of a package using YUM? I know how to use rpm to list the contents of a package ( rpm -qpil package.rpm ). However, this requires knowing the location of the .rpm file on the filesystem. A more elegant solution would be to use the package manager, which in my case is YUM . How can YUM be use...
linux, fedora, rpm, yum, package-managers
363
433,299
7
https://stackoverflow.com/questions/104055/how-can-i-list-the-contents-of-a-package-using-yum
36,685,980
Why is Docker installed but not Docker Compose?
I have installed docker on CentOS 7 by running following commands, curl -sSL [URL] | sh systemctl enable docker && systemctl start docker docker run hello-world NOTE: helloworld runs correctly and no issues. however when I try to run docker-compose (docker-compose.yml exists and valid) it gives me the error on CentOS o...
Why is Docker installed but not Docker Compose? I have installed docker on CentOS 7 by running following commands, curl -sSL [URL] | sh systemctl enable docker && systemctl start docker docker run hello-world NOTE: helloworld runs correctly and no issues. however when I try to run docker-compose (docker-compose.yml exi...
docker, docker-compose, dockerfile, centos
335
740,373
28
https://stackoverflow.com/questions/36685980/why-is-docker-installed-but-not-docker-compose
37,585,758
How to redirect output of systemd service to a file
I am trying to redirect output of a systemd service to a file but it doesn't seem to work: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir /etc/sample.d/server StandardOutput=/var/log1.log StandardError=/var/log2.log Restart=always [Install...
How to redirect output of systemd service to a file I am trying to redirect output of a systemd service to a file but it doesn't seem to work: [Unit] Description=customprocess After=network.target [Service] Type=forking ExecStart=/usr/local/bin/binary1 agent -config-dir /etc/sample.d/server StandardOutput=/var/log1.log...
linux, centos7, systemd, rhel, rhel7
312
426,333
10
https://stackoverflow.com/questions/37585758/how-to-redirect-output-of-systemd-service-to-a-file
8,296,710
How to ignore xargs commands if stdin input is empty?
Consider this command: ls /mydir/*.txt | xargs chown root The intention is to change owners of all text files in mydir to root The issue is that if there are no .txt files in mydir then xargs thows an error saying there is no path specified. This is a harmless example because an error is being thrown, but in some cases...
How to ignore xargs commands if stdin input is empty? Consider this command: ls /mydir/*.txt | xargs chown root The intention is to change owners of all text files in mydir to root The issue is that if there are no .txt files in mydir then xargs thows an error saying there is no path specified. This is a harmless examp...
bash, centos, xargs
307
80,242
7
https://stackoverflow.com/questions/8296710/how-to-ignore-xargs-commands-if-stdin-input-is-empty
20,454,199
How can I use a different version of python during NPM install?
I have terminal access to a VPS running CentOS 5.9 and default Python 2.4.3 installed. I also installed Python 2.7.3 via these commands (I used make altinstall instead of make install ): wget [URL] tar -xf Python-2.7.3.tgz cd Python-2.7.3 ./configure make make altinstall Then I installed Node.js from source code via th...
How can I use a different version of python during NPM install? I have terminal access to a VPS running CentOS 5.9 and default Python 2.4.3 installed. I also installed Python 2.7.3 via these commands (I used make altinstall instead of make install ): wget [URL] tar -xf Python-2.7.3.tgz cd Python-2.7.3 ./configure make ...
python, node.js, centos, npm
282
273,053
6
https://stackoverflow.com/questions/20454199/how-can-i-use-a-different-version-of-python-during-npm-install
15,622,328
How to grep a string in a directory and all its subdirectories?
How to grep a string or a text in a directory and all its subdirectories'files in LINUX ??
How to grep a string in a directory and all its subdirectories? How to grep a string or a text in a directory and all its subdirectories'files in LINUX ??
linux, unix, grep, centos
273
696,317
2
https://stackoverflow.com/questions/15622328/how-to-grep-a-string-in-a-directory-and-all-its-subdirectories
21,820,715
How to install latest version of git on CentOS 8.x/7.x/6.x
I used the usual: yum install git It did not install the latest version of git on my CentOS 6. How can I update to the latest version of git for CentOS 6? The solution can be applicable to newer versions of CentOS such as CentOS 7.
How to install latest version of git on CentOS 8.x/7.x/6.x I used the usual: yum install git It did not install the latest version of git on my CentOS 6. How can I update to the latest version of git for CentOS 6? The solution can be applicable to newer versions of CentOS such as CentOS 7.
linux, git, installation, centos, yum
269
279,758
15
https://stackoverflow.com/questions/21820715/how-to-install-latest-version-of-git-on-centos-8-x-7-x-6-x
17,413,526
nginx missing sites-available directory
I installed Nginx on Centos 6 and I am trying to set up virtual hosts. The problem I am having is that I can't seem to find the /etc/nginx/sites-available directory. Is there something I need to do in order to create it? I know Nginx is up and running because I can browse to it.
nginx missing sites-available directory I installed Nginx on Centos 6 and I am trying to set up virtual hosts. The problem I am having is that I can't seem to find the /etc/nginx/sites-available directory. Is there something I need to do in order to create it? I know Nginx is up and running because I can browse to it.
nginx, centos, virtualhost
264
250,645
3
https://stackoverflow.com/questions/17413526/nginx-missing-sites-available-directory
36,394,101
pip install - locale.Error: unsupported locale setting
Full stacktrace: ~ pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 215, in main locale.setlocale(locale.LC_ALL, '') File "/usr/lib64/python3.4/locale.py", line 592, in setlocale return _set...
pip install - locale.Error: unsupported locale setting Full stacktrace: ~ pip install virtualenv Traceback (most recent call last): File "/usr/bin/pip", line 11, in <module> sys.exit(main()) File "/usr/lib/python3.4/site-packages/pip/__init__.py", line 215, in main locale.setlocale(locale.LC_ALL, '') File "/usr/lib64/p...
python, python-3.x, centos, pip
256
217,527
10
https://stackoverflow.com/questions/36394101/pip-install-locale-error-unsupported-locale-setting
1,133,495
How do I find which rpm package supplies a file I'm looking for?
As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would install the mod_files.sh file with the php-devel x86_64 5.1.6-23.2.el5_3 package, but the file appears to not to be installed on my filesystem. How do I find out which package installs a ...
How do I find which rpm package supplies a file I'm looking for? As an example, I am looking for a mod_files.sh file which presumably would come with the php-devel package. I guessed that yum would install the mod_files.sh file with the php-devel x86_64 5.1.6-23.2.el5_3 package, but the file appears to not to be instal...
centos, rpm, yum
246
391,159
9
https://stackoverflow.com/questions/1133495/how-do-i-find-which-rpm-package-supplies-a-file-im-looking-for
15,255,070
How do you scroll up/down on the console of a Linux VM
I recognize that Up / Down will give you the command history. But, how do you look at past output by scrolling up and down? I have used Shift + Page Up / Page Down , Alt + Shift + Up / Down and Page Up / Page Down but none of these seem to work. It is a Redhat Linux box.
How do you scroll up/down on the console of a Linux VM I recognize that Up / Down will give you the command history. But, how do you look at past output by scrolling up and down? I have used Shift + Page Up / Page Down , Alt + Shift + Up / Down and Page Up / Page Down but none of these seem to work. It is a Redhat Linu...
linux, terminal, rhel
242
564,262
15
https://stackoverflow.com/questions/15255070/how-do-you-scroll-up-down-on-the-console-of-a-linux-vm
6,795,350
Nginx 403 forbidden for all files
I have nginx installed with PHP-FPM on a CentOS 5 box, but am struggling to get it to serve any of my files - whether PHP or not. Nginx is running as www-data:www-data, and the default "Welcome to nginx on EPEL" site (owned by root:root with 644 permissions) loads fine. The nginx configuration file has an include direc...
Nginx 403 forbidden for all files I have nginx installed with PHP-FPM on a CentOS 5 box, but am struggling to get it to serve any of my files - whether PHP or not. Nginx is running as www-data:www-data, and the default "Welcome to nginx on EPEL" site (owned by root:root with 644 permissions) loads fine. The nginx confi...
nginx, centos, http-status-code-403, php
232
303,513
13
https://stackoverflow.com/questions/6795350/nginx-403-forbidden-for-all-files
12,952,913
How do I install g++ for Fedora?
How do I install g++ for Fedora Linux? I have been searching the dnf command to install g++ but didn't find anything. How do I install it? I have already installed gcc
How do I install g++ for Fedora? How do I install g++ for Fedora Linux? I have been searching the dnf command to install g++ but didn't find anything. How do I install it? I have already installed gcc
c++, linux, g++, fedora, dnf
218
228,114
11
https://stackoverflow.com/questions/12952913/how-do-i-install-g-for-fedora
13,385,029
Automatically start forever (node) on system restart
I am using node's forever module to keep my node server running. Forever however terminates when there is a system restart. Is there any way I can automatically start the node server (with forever) when the system restarts?
Automatically start forever (node) on system restart I am using node's forever module to keep my node server running. Forever however terminates when there is a system restart. Is there any way I can automatically start the node server (with forever) when the system restarts?
node.js, centos, forever
199
163,000
16
https://stackoverflow.com/questions/13385029/automatically-start-forever-node-on-system-restart
28,328,775
VirtualBox: mount.vboxsf: mounting failed with the error: No such device
I'm using VirtualBox with OS X as host and CentOS on the guest VM. In OS X I created folder myfolder , added it as shared folder to the VM, turned on the VM, in CentOS created folder /home/user/myfolder and typing: sudo mount -t vboxsf myfolder /home/user/myfolder and have output: /sbin/mount.vboxsf: mounting failed wi...
VirtualBox: mount.vboxsf: mounting failed with the error: No such device I'm using VirtualBox with OS X as host and CentOS on the guest VM. In OS X I created folder myfolder , added it as shared folder to the VM, turned on the VM, in CentOS created folder /home/user/myfolder and typing: sudo mount -t vboxsf myfolder /h...
macos, centos, virtual-machine, virtualbox
191
288,699
21
https://stackoverflow.com/questions/28328775/virtualbox-mount-vboxsf-mounting-failed-with-the-error-no-such-device
9,541,460
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
I tried to restart my Apache server on CentOS 5.0 and got this message: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Here is the /etc/hosts file: 127.0.0.1 server4-245 server4-245.com localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 H...
httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName I tried to restart my Apache server on CentOS 5.0 and got this message: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName Here is the /etc/hosts file: 1...
linux, apache, centos
189
540,992
12
https://stackoverflow.com/questions/9541460/httpd-could-not-reliably-determine-the-servers-fully-qualified-domain-name-us
8,328,250
CentOS 64 bit bad ELF interpreter
I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory How do I resolve this?
CentOS 64 bit bad ELF interpreter I have just installed CentOS 6 64bit version, I'm trying to install a 32-bit application on a 64-bit machine and got this error: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory How do I resolve this?
linux, centos, 32bit-64bit, elf, centos6
186
389,894
9
https://stackoverflow.com/questions/8328250/centos-64-bit-bad-elf-interpreter
12,906,351
ImportError: No module named psycopg2
In installation process of OpenERP 6, I want to generate a config file with these commands: cd /home/openerp/openerp-server/bin/ ./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-server.cfg But it always showed the message: ImportError: No module named psycopg2 When I checked for psycopg2 package, it's ...
ImportError: No module named psycopg2 In installation process of OpenERP 6, I want to generate a config file with these commands: cd /home/openerp/openerp-server/bin/ ./openerp-server.py -s --stop-after-init -c /home/openerp/openerp-server.cfg But it always showed the message: ImportError: No module named psycopg2 When...
python, centos, odoo, centos5
185
623,185
24
https://stackoverflow.com/questions/12906351/importerror-no-module-named-psycopg2
30,770,155
ffprobe or avprobe not found. Please install one
I want to add tags to mp3 converted by youtube-dl & ffmpeg: youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(artist)s - %(title)s" 2>&1 I have this error in the output result: [youtube] qpgTC9MDx1o: Downloading webpage [youtube] qpgTC9MDx1o: Extracting video info...
ffprobe or avprobe not found. Please install one I want to add tags to mp3 converted by youtube-dl & ffmpeg: youtube-dl -o '/Output/qpgTC9MDx1o.mp3' qpgTC9MDx1o -f bestaudio --extract-audio --metadata-from-title "%(artist)s - %(title)s" 2>&1 I have this error in the output result: [youtube] qpgTC9MDx1o: Downloading web...
youtube, ffmpeg, centos, ffprobe
184
271,137
17
https://stackoverflow.com/questions/30770155/ffprobe-or-avprobe-not-found-please-install-one
17,850,787
Where is the php.ini file on a Linux/CentOS PC?
I can't find PHP.ini location on my server. I've checked all Stack Overflow answers but I can't find my php.ini location. I have Linux, Cent OS, zPanel. Last version of PHP. My computer: Linux Mint 15 KDE.
Where is the php.ini file on a Linux/CentOS PC? I can't find PHP.ini location on my server. I've checked all Stack Overflow answers but I can't find my php.ini location. I have Linux, Cent OS, zPanel. Last version of PHP. My computer: Linux Mint 15 KDE.
php, linux, centos
164
547,836
5
https://stackoverflow.com/questions/17850787/where-is-the-php-ini-file-on-a-linux-centos-pc
540,603
How can I find the version of the Fedora I use?
sudo find /etc | xargs grep -i fedora > searchFedora gives: /etc/netplug.d/netplug: # At least on Fedora Core 1 ... But see the Fedora version in the /etc/netplug.d/netplug file. Is it serious?
How can I find the version of the Fedora I use? sudo find /etc | xargs grep -i fedora > searchFedora gives: /etc/netplug.d/netplug: # At least on Fedora Core 1 ... But see the Fedora version in the /etc/netplug.d/netplug file. Is it serious?
linux, fedora
161
351,038
15
https://stackoverflow.com/questions/540603/how-can-i-find-the-version-of-the-fedora-i-use
8,087,184
Installing Python 3 on RHEL
I'm trying to install python3 on RHEL using the following steps: yum search python3 Which returned No matches found for: python3 Followed by: yum search python None of the search results contained python3. What should I try next?
Installing Python 3 on RHEL I'm trying to install python3 on RHEL using the following steps: yum search python3 Which returned No matches found for: python3 Followed by: yum search python None of the search results contained python3. What should I try next?
python, python-3.x, rhel
156
366,118
19
https://stackoverflow.com/questions/8087184/installing-python-3-on-rhel
24,756,240
How can I use iptables on centos 7?
I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for httpd service, but something wrong with my iptables service ... what's wrong with it? What am I doing wrong? # ifconfig/sbin/service iptables save bash: ifconfig/sbin/service: No such file or directory # /sbin/service ipta...
How can I use iptables on centos 7? I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for httpd service, but something wrong with my iptables service ... what's wrong with it? What am I doing wrong? # ifconfig/sbin/service iptables save bash: ifconfig/sbin/service: No such fi...
network-programming, centos, iptables, systemd
153
427,923
9
https://stackoverflow.com/questions/24756240/how-can-i-use-iptables-on-centos-7
394,984
Best practice to run Linux service as a different user
Services default to starting as root at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in /etc/init.d . What do you think is the best way to instead have the processes run as a (static) user of my choosing? The only method I'd arrived at was to use s...
Best practice to run Linux service as a different user Services default to starting as root at boot time on my RHEL box. If I recall correctly, the same is true for other Linux distros which use the init scripts in /etc/init.d . What do you think is the best way to instead have the processes run as a (static) user of m...
linux, system-administration, rhel, init.d
142
266,515
8
https://stackoverflow.com/questions/394984/best-practice-to-run-linux-service-as-a-different-user
19,256,127
Two versions of python on linux. how to make 2.7 the default
I've got two versions of python on my linuxbox: $python Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ /usr/local/bin/python2.7 Python 2.7.3 (default, Oct 8 2013, 15:53:09) [GCC 4.4.7 20120313...
Two versions of python on linux. how to make 2.7 the default I've got two versions of python on my linuxbox: $python Python 2.6.6 (r266:84292, Jul 10 2013, 22:48:45) [GCC 4.4.7 20120313 (Red Hat 4.4.7-3)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> $ /usr/local/bin/python2.7 Pyt...
python, linux, centos
136
478,749
8
https://stackoverflow.com/questions/19256127/two-versions-of-python-on-linux-how-to-make-2-7-the-default
2,247,977
What does "zend_mm_heap corrupted" mean
All of the sudden I've been having problems with my application that I've never had before. I decided to check the Apache's error log, and I found an error message saying "zend_mm_heap corrupted". What does this mean. OS: Fedora Core 8 Apache: 2.2.9 PHP: 5.2.6
What does "zend_mm_heap corrupted" mean All of the sudden I've been having problems with my application that I've never had before. I decided to check the Apache's error log, and I found an error message saying "zend_mm_heap corrupted". What does this mean. OS: Fedora Core 8 Apache: 2.2.9 PHP: 5.2.6
php, fedora, heap-corruption, php-internals
134
190,750
41
https://stackoverflow.com/questions/2247977/what-does-zend-mm-heap-corrupted-mean
5,856,205
Could not reliably determine the server's fully qualified domain name
I have just installed Apache 2.2.17, and I am using it for the first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName Now I think I have to set ServerName and the...
Could not reliably determine the server's fully qualified domain name I have just installed Apache 2.2.17, and I am using it for the first time. Now when I try to start the server using the command service httpd start it gives me the message: httpd: Could not reliably determine the server's fully qualified domain name,...
apache2, fedora
134
503,881
15
https://stackoverflow.com/questions/5856205/could-not-reliably-determine-the-servers-fully-qualified-domain-name
5,407,703
javac : command not found
I have installed java in my CentOS release 5.5 machine using the command yum install java . But I am unable to compile a class using javac. Do I need to install any other package? I have tried to locate the javac executable but i am unable to locate it. /usr/bin/java is linked as follows: /usr/bin/java -> /etc/alternat...
javac : command not found I have installed java in my CentOS release 5.5 machine using the command yum install java . But I am unable to compile a class using javac. Do I need to install any other package? I have tried to locate the javac executable but i am unable to locate it. /usr/bin/java is linked as follows: /usr...
java, compilation, centos, javac
131
369,574
12
https://stackoverflow.com/questions/5407703/javac-command-not-found
2,384,423
index.php not loading by default
I have just installed CentOS, Apache and PHP. When I visit my site [URL] , it says "forbidden". By default it's not loading the index.php file. When I visit [URL] , it works fine. Any idea how to fix that issue?
index.php not loading by default I have just installed CentOS, Apache and PHP. When I visit my site [URL] , it says "forbidden". By default it's not loading the index.php file. When I visit [URL] , it works fine. Any idea how to fix that issue?
php, apache, centos, apache-config
127
498,976
10
https://stackoverflow.com/questions/2384423/index-php-not-loading-by-default
11,014,584
EC2 Can't resize volume after increasing size
I have followed the steps for resizing an EC2 volume Stopped the instance Took a snapshot of the current volume Created a new volume out of the previous snapshot with a bigger size in the same region Deattached the old volume from the instance Attached the new volume to the instance at the same mount point Old volume w...
EC2 Can't resize volume after increasing size I have followed the steps for resizing an EC2 volume Stopped the instance Took a snapshot of the current volume Created a new volume out of the previous snapshot with a bigger size in the same region Deattached the old volume from the instance Attached the new volume to the...
amazon-ec2, centos, image-resizing, snapshot
124
148,078
20
https://stackoverflow.com/questions/11014584/ec2-cant-resize-volume-after-increasing-size
13,855,463
bash: mkvirtualenv: command not found
After following the instructions on Doug Hellman's virtualenvwrapper post , I still could not fire up a test environment. [mpenning@tsunami ~]$ mkvirtualenv test -bash: mkvirtualenv: command not found [mpenning@tsunami ~]$ It should be noted that I'm using WORKON_HOME that is not in my $HOME . I tried looking for /usr/...
bash: mkvirtualenv: command not found After following the instructions on Doug Hellman's virtualenvwrapper post , I still could not fire up a test environment. [mpenning@tsunami ~]$ mkvirtualenv test -bash: mkvirtualenv: command not found [mpenning@tsunami ~]$ It should be noted that I'm using WORKON_HOME that is not i...
python, bash, centos, virtualenv, virtualenvwrapper
123
271,404
14
https://stackoverflow.com/questions/13855463/bash-mkvirtualenv-command-not-found
70,963,985
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist
I am trying to download java using yum on centOs which I specified in a Dockerfile. After pulling centOs image the run crashed and threw this error!? also to mention that my server instance is AWS EC2! Step 2/9 : RUN yum install java -y ---> Running in 39fc233aa965 CentOS Linux 8 - AppStream 184 B/s | 38 B 00:00 Error:...
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: No URLs in mirrorlist I am trying to download java using yum on centOs which I specified in a Dockerfile. After pulling centOs image the run crashed and threw this error!? also to mention that my server instance is AWS EC2! Ste...
docker, centos, devops, yum
123
319,353
13
https://stackoverflow.com/questions/70963985/error-failed-to-download-metadata-for-repo-appstream-cannot-prepare-internal
9,422,461
Check if directory mounted with bash
I am using mount -o bind /some/directory/here /foo/bar I want to check /foo/bar though with a bash script, and see if its been mounted? If not, then call the above mount command, else do something else. How can I do this? CentOS is the operating system.
Check if directory mounted with bash I am using mount -o bind /some/directory/here /foo/bar I want to check /foo/bar though with a bash script, and see if its been mounted? If not, then call the above mount command, else do something else. How can I do this? CentOS is the operating system.
linux, bash, centos, mount
122
200,733
8
https://stackoverflow.com/questions/9422461/check-if-directory-mounted-with-bash
36,300,446
ssh : Permission denied (publickey,gssapi-with-mic)
i'm use centos 5.9. after installing gitlab by this link ssh not working. before install gitlab ssh correctly working. i'm using this server localy and other services such as elastix and apache,mysql installed on server. appeare this error : OpenSSH_6.9p1 Ubuntu-2ubuntu0.1, OpenSSL 1.0.2d 9 Jul 2015 debug1: Reading con...
ssh : Permission denied (publickey,gssapi-with-mic) i'm use centos 5.9. after installing gitlab by this link ssh not working. before install gitlab ssh correctly working. i'm using this server localy and other services such as elastix and apache,mysql installed on server. appeare this error : OpenSSH_6.9p1 Ubuntu-2ubun...
ssh, centos, gitlab
121
740,828
38
https://stackoverflow.com/questions/36300446/ssh-permission-denied-publickey-gssapi-with-mic
2,960,339
Unable to install pyodbc on Linux
I am running Linux (2.6.18-164.15.1.el5.centos.plus) and trying to install pyodbc. I am doing pip install pyodbc and get a very long list of errors, which end in error: command 'gcc' failed with exit status 1 I looked in /root/.pip/pip.log and saw the following: InstallationError: Command /usr/local/bin/python -c "impo...
Unable to install pyodbc on Linux I am running Linux (2.6.18-164.15.1.el5.centos.plus) and trying to install pyodbc. I am doing pip install pyodbc and get a very long list of errors, which end in error: command 'gcc' failed with exit status 1 I looked in /root/.pip/pip.log and saw the following: InstallationError: Comm...
python, linux, centos, pyodbc
119
180,466
20
https://stackoverflow.com/questions/2960339/unable-to-install-pyodbc-on-linux
27,152,943
How can I view the complete httpd configuration?
I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd configuration? Like the whole running setup configuration in a single file?
How can I view the complete httpd configuration? I'm trying to figure out what is the full complete configuration of an httpd setup. All the configurations files are scattered in different files (/etc/httpd/conf.d, httpd.conf, various mod configs) Is there a way to list the final httpd configuration? Like the whole run...
apache, centos, apache2, webserver, server
117
192,186
6
https://stackoverflow.com/questions/27152943/how-can-i-view-the-complete-httpd-configuration
16,809,134
How to get a list of programs running with nohup
I am accessing a server running CentOS (linux distribution) with an SSH connection. Since I can't always stay logged in, I use "nohup [command] &" to run my programs. I couldn't find how to get a list of all the programs I started using nohup. "jobs" only works out before I log out. After that, if I log back again, the...
How to get a list of programs running with nohup I am accessing a server running CentOS (linux distribution) with an SSH connection. Since I can't always stay logged in, I use "nohup [command] &" to run my programs. I couldn't find how to get a list of all the programs I started using nohup. "jobs" only works out befor...
linux, shell, centos, nohup
114
242,952
7
https://stackoverflow.com/questions/16809134/how-to-get-a-list-of-programs-running-with-nohup
20,270,879
What's the default password of mariadb on fedora?
I installed mysql through yum just now and the OS fedora installed mariadb for me. I know mariadb is a new branch of mysql, but I can't understand why it does not ask me for setting the password. I have tried for 123456 and so on, but I failed. My fedora is new, and this is the first time to install mysql/mariadb. What...
What's the default password of mariadb on fedora? I installed mysql through yum just now and the OS fedora installed mariadb for me. I know mariadb is a new branch of mysql, but I can't understand why it does not ask me for setting the password. I have tried for 123456 and so on, but I failed. My fedora is new, and thi...
mysql, passwords, fedora, mariadb
114
367,835
13
https://stackoverflow.com/questions/20270879/whats-the-default-password-of-mariadb-on-fedora
31,583,646
cannot find autoconf. please check your autoconf installation Xampp in CentOS
Getting another error when configuring memcahed with php in XAMPP in CentOS # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf. Please check your autoconf installation and the $PHP_AUTOCONF environment variable. Then, rer...
cannot find autoconf. please check your autoconf installation Xampp in CentOS Getting another error when configuring memcahed with php in XAMPP in CentOS # /opt/lampp/bin/phpize Configuring for: PHP Api Version: 20131106 Zend Module Api No: 20131226 Zend Extension Api No: 220131226 Cannot find autoconf. Please check yo...
php, centos, xampp, memcached, autoconf
113
102,765
7
https://stackoverflow.com/questions/31583646/cannot-find-autoconf-please-check-your-autoconf-installation-xampp-in-centos
5,984,217
Vagrant's port forwarding not working
I'm running into a small problem at the end of the Getting Started guide for vagrant . I'm working on a CentOS basebox that has Apache2 running (provisioning via Puppet). I've set up port forwarding for web requests using the following line in Vagrantfile : config.vm.forward_port "web", 80, 4567 But when I make request...
Vagrant's port forwarding not working I'm running into a small problem at the end of the Getting Started guide for vagrant . I'm working on a CentOS basebox that has Apache2 running (provisioning via Puppet). I've set up port forwarding for web requests using the following line in Vagrantfile : config.vm.forward_port "...
apache, http, centos, portforwarding, vagrant
112
103,958
5
https://stackoverflow.com/questions/5984217/vagrants-port-forwarding-not-working
18,422,140
Apache is downloading php files instead of displaying them
OS and server information: CentOS 6.4 (Final) Apache 2.2.15 PHP 5.5.1 I previously had php 5.3.x installed but decided to upgrade. I first uninstalled the php 5.3.x and then installed php 5.5.1 but after the installation completed apache did not parse the php files it just downloaded them. I have checked similar questi...
Apache is downloading php files instead of displaying them OS and server information: CentOS 6.4 (Final) Apache 2.2.15 PHP 5.5.1 I previously had php 5.3.x installed but decided to upgrade. I first uninstalled the php 5.3.x and then installed php 5.5.1 but after the installation completed apache did not parse the php f...
php, apache, centos
112
358,311
27
https://stackoverflow.com/questions/18422140/apache-is-downloading-php-files-instead-of-displaying-them
30,464,980
How to check all versions of Python installed on OS X and CentOS
I just started setting up a CentOS server today and noticed that the default version of Python on CentOS is set to 2.6.6. I want to use Python 2.7 instead. I googled around and found that 2.6.6 is used by system tools such as YUM so I should not tamper with it. Then I opened up a terminal on my Mac and found that I had...
How to check all versions of Python installed on OS X and CentOS I just started setting up a CentOS server today and noticed that the default version of Python on CentOS is set to 2.6.6. I want to use Python 2.7 instead. I googled around and found that 2.6.6 is used by system tools such as YUM so I should not tamper wi...
python, linux, macos, centos, version
112
430,660
15
https://stackoverflow.com/questions/30464980/how-to-check-all-versions-of-python-installed-on-os-x-and-centos
21,488,357
Use sudo with .vimrc
I'm using CentOS and created a .vimrc file in my /home directory. I tested it out by creating a txt file and yes, that worked fine. Now, I have my project files in my /srv directory with SELinux turned on. I tried opening a file: vim README.txt and yes, my .vimrc settings are still being applied. Now, since I'm in the ...
Use sudo with .vimrc I'm using CentOS and created a .vimrc file in my /home directory. I tested it out by creating a txt file and yes, that worked fine. Now, I have my project files in my /srv directory with SELinux turned on. I tried opening a file: vim README.txt and yes, my .vimrc settings are still being applied. N...
vim, centos
106
38,224
4
https://stackoverflow.com/questions/21488357/use-sudo-with-vimrc
5,104,817
How to install Java SDK on CentOS?
I have CentOS 5, but I don't know the steps to install Java SDK on Linux. Where to download the RPM file and what can I do next to fully install that? Then I need to install Tomcat . Or is there any ready-made package for all?
How to install Java SDK on CentOS? I have CentOS 5, but I don't know the steps to install Java SDK on Linux. Where to download the RPM file and what can I do next to fully install that? Then I need to install Tomcat . Or is there any ready-made package for all?
java, sdk, centos
103
279,445
12
https://stackoverflow.com/questions/5104817/how-to-install-java-sdk-on-centos
24,967,855
curl: (6) Could not resolve host: google.com; Name or service not known
when I try to load a web page to terminal it gives curl: (6) Could not resolve host error. I have internet in my PC and trying from my home internet connection. So as I there is no any proxy involve here. [root@localhost kevin]# curl [URL] curl: (6) Could not resolve host: google.com; Name or service not known clean al...
curl: (6) Could not resolve host: google.com; Name or service not known when I try to load a web page to terminal it gives curl: (6) Could not resolve host error. I have internet in my PC and trying from my home internet connection. So as I there is no any proxy involve here. [root@localhost kevin]# curl [URL] curl: (6...
linux, curl, terminal, fedora
102
747,454
10
https://stackoverflow.com/questions/24967855/curl-6-could-not-resolve-host-google-com-name-or-service-not-known
20,162,176
Centos/Linux setting logrotate to maximum file size for all logs
we use logrotate and it runs daily ... now we have had some situations where logs have grown significantly (read: gigbaytes) and killing our server. So now we would like to set a maximum filesize to the logs .... can I just add this to the logrotate.conf? size 50M and would it then apply to all log files? Or do I need ...
Centos/Linux setting logrotate to maximum file size for all logs we use logrotate and it runs daily ... now we have had some situations where logs have grown significantly (read: gigbaytes) and killing our server. So now we would like to set a maximum filesize to the logs .... can I just add this to the logrotate.conf?...
linux, centos, logrotate
100
274,707
3
https://stackoverflow.com/questions/20162176/centos-linux-setting-logrotate-to-maximum-file-size-for-all-logs
11,587,343
Difference between $HOME and '~' (tilde)?
I had always thought that $HOME and ~ were exactly the same and thus could be used interchangeably. Today, when I tried to install pylibmc , a python binding to memcached, on my shared server the use of ~ gave me error but not $HOME . I would like to reason out why. libmemcached is a requirement for pylibmc . I have li...
Difference between $HOME and '~' (tilde)? I had always thought that $HOME and ~ were exactly the same and thus could be used interchangeably. Today, when I tried to install pylibmc , a python binding to memcached, on my shared server the use of ~ gave me error but not $HOME . I would like to reason out why. libmemcache...
linux, bash, centos
99
32,652
5
https://stackoverflow.com/questions/11587343/difference-between-home-and-tilde
64,010,263
AttributeError: module 'importlib' has no attribute 'util'
I've just upgraded from Fedora 32 to Fedora 33 (which comes with Python 3.9). Since then gcloud command stopped working: [guy@Gandalf32 ~]$ gcloud Error processing line 3 of /home/guy/.local/lib/python3.9/site-packages/XStatic-1.0.2-py3.9-nspkg.pth: Traceback (most recent call last): File "/usr/lib64/python3.9/site.py"...
AttributeError: module 'importlib' has no attribute 'util' I've just upgraded from Fedora 32 to Fedora 33 (which comes with Python 3.9). Since then gcloud command stopped working: [guy@Gandalf32 ~]$ gcloud Error processing line 3 of /home/guy/.local/lib/python3.9/site-packages/XStatic-1.0.2-py3.9-nspkg.pth: Traceback (...
python, gcloud, fedora, python-3.9
98
49,374
6
https://stackoverflow.com/questions/64010263/attributeerror-module-importlib-has-no-attribute-util
14,300,794
How do I download a file from the internet to my linux server with Bash
I recently had to upgrade to a VPS server (HostGator Linux) because I wanted to run a script that was a bit more complicated than the regular PHP db manipulation. I'm trying to install a JDK and Apache Ant (if it matters, for compiling Android Apps on server). I watched tutorials on Linux Bash and started using it. I a...
How do I download a file from the internet to my linux server with Bash I recently had to upgrade to a VPS server (HostGator Linux) because I wanted to run a script that was a bit more complicated than the regular PHP db manipulation. I'm trying to install a JDK and Apache Ant (if it matters, for compiling Android Apps...
linux, centos
95
248,682
3
https://stackoverflow.com/questions/14300794/how-do-i-download-a-file-from-the-internet-to-my-linux-server-with-bash
45,272,827
Docker CE on RHEL - Requires: container-selinux >= 2.9
I am trying to install Docker CE on RHEL using this link . This is my RHEL version: Red Hat Enterprise Linux Server release 7.3 (Maipo) When I execute this: sudo yum -y install docker-ce I am getting this error: Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86_64 (docker-ce-stable) Requires: container-selinux >= 2...
Docker CE on RHEL - Requires: container-selinux >= 2.9 I am trying to install Docker CE on RHEL using this link . This is my RHEL version: Red Hat Enterprise Linux Server release 7.3 (Maipo) When I execute this: sudo yum -y install docker-ce I am getting this error: Error: Package: docker-ce-17.06.0.ce-1.el7.centos.x86...
docker, unix, rhel
95
192,995
21
https://stackoverflow.com/questions/45272827/docker-ce-on-rhel-requires-container-selinux-2-9
26,266,437
how to use python2.7 pip instead of default pip
I just installed python 2.7 and also pip to the 2.7 site package. When I get the version with: pip -V It shows: pip 1.3.1 from /usr/lib/python2.6/site-packages (python 2.6) How do I use the 2.7 version of pip located at: /usr/local/lib/python2.7/site-packages
how to use python2.7 pip instead of default pip I just installed python 2.7 and also pip to the 2.7 site package. When I get the version with: pip -V It shows: pip 1.3.1 from /usr/lib/python2.6/site-packages (python 2.6) How do I use the 2.7 version of pip located at: /usr/local/lib/python2.7/site-packages
python, linux, django, centos, pip
94
278,186
4
https://stackoverflow.com/questions/26266437/how-to-use-python2-7-pip-instead-of-default-pip
1,465,036
Install python 2.6 in CentOS
I have a shell that runs CentOS. For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4. From what I've read, a number of things will break if you upgrade to 2.5. I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the source tarball, untarred it,...
Install python 2.6 in CentOS I have a shell that runs CentOS. For a project I'm doing, I need python 2.5+, but centOS is pretty dependent on 2.4. From what I've read, a number of things will break if you upgrade to 2.5. I want to install 2.5 separately from 2.4, but I'm not sure how to do it. So far I've downloaded the...
python, centos, rpath
88
193,037
15
https://stackoverflow.com/questions/1465036/install-python-2-6-in-centos
9,083,408
Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist
I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried the following: yum install mysql-server mysql And didn't get any errors or conflicts. Then I tried to start mysql with the following commands: chkconfi...
Fatal error: Can't open and lock privilege tables: Table 'mysql.host' doesn't exist I am on a server that has afresh install on RHEL 5. I was able to install Apache and PHP just fine., but I am having serious trouble with my MySQL installation. I tried the following: yum install mysql-server mysql And didn't get any er...
mysql, linux, rhel, rhel5
86
304,842
19
https://stackoverflow.com/questions/9083408/fatal-error-cant-open-and-lock-privilege-tables-table-mysql-host-doesnt-ex
11,584,426
How do I enable --enable-soap in php on linux?
That's much the question. I have PHP 5.2.9 on Apache and I cannot upgrade PHP. Is there a way for me to enable SOAP in PHP 5.2.9? The PHP manual did not help at all when it said, "To enable SOAP support, configure PHP with --enable-soap ." How do I configure?
How do I enable --enable-soap in php on linux? That's much the question. I have PHP 5.2.9 on Apache and I cannot upgrade PHP. Is there a way for me to enable SOAP in PHP 5.2.9? The PHP manual did not help at all when it said, "To enable SOAP support, configure PHP with --enable-soap ." How do I configure?
php, linux, soap, fedora
86
286,907
3
https://stackoverflow.com/questions/11584426/how-do-i-enable-enable-soap-in-php-on-linux
24,671,621
No space left on device
I am getting the error "No space left on device" when i tried to scp some files to a centos machine, tried to check: [root@...]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol01 18G 18G 0 100% / And when I do du -sh / -> it gives only 5G [... ~]$ df -i / Filesystem Inodes IUsed IFree IUs...
No space left on device I am getting the error "No space left on device" when i tried to scp some files to a centos machine, tried to check: [root@...]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/VolGroup00-LogVol01 18G 18G 0 100% / And when I do du -sh / -> it gives only 5G [... ~]$ df -i / Filesyste...
linux, filesystems, centos
86
424,750
4
https://stackoverflow.com/questions/24671621/no-space-left-on-device
19,233,529
Run bash script as daemon
I have a script, which runs my PHP script each X times: #!/bin/bash while true; do /usr/bin/php -f ./my-script.php echo "Waiting..." sleep 3 done How can I start it as daemon?
Run bash script as daemon I have a script, which runs my PHP script each X times: #!/bin/bash while true; do /usr/bin/php -f ./my-script.php echo "Waiting..." sleep 3 done How can I start it as daemon?
linux, centos, centos6, daemons
85
214,685
5
https://stackoverflow.com/questions/19233529/run-bash-script-as-daemon
25,485,047
Hourly rotation of files using logrotate?
I tried to set up a log rotation of logs files located at /tmp/hr_logs/. For setting up, I used logrotate in linux and I'm able to rotate it on daily basis using the following config in my /etc/logrotate.conf /tmp/hr_logs { daily rotate 4 With this config, file will rotate on daily basis and system will keep 4 copies o...
Hourly rotation of files using logrotate? I tried to set up a log rotation of logs files located at /tmp/hr_logs/. For setting up, I used logrotate in linux and I'm able to rotate it on daily basis using the following config in my /etc/logrotate.conf /tmp/hr_logs { daily rotate 4 With this config, file will rotate on d...
linux, cron, rhel, logrotate
82
142,922
2
https://stackoverflow.com/questions/25485047/hourly-rotation-of-files-using-logrotate
21,802,223
How to install crontab on Centos
I am familiar to setup the cron scheduler using crontab -e command on my centos . But today I found one of my centos servers doesn't have this command I have tried to install this using yum install crontab but no luck. Then I tried yum install crontabs and it installed something ========================================...
How to install crontab on Centos I am familiar to setup the cron scheduler using crontab -e command on my centos . But today I found one of my centos servers doesn't have this command I have tried to install this using yum install crontab but no luck. Then I tried yum install crontabs and it installed something =======...
linux, centos, cron
79
182,730
1
https://stackoverflow.com/questions/21802223/how-to-install-crontab-on-centos
12,313,384
How to view unallocated free space on a hard disk through terminal
I want to view the unallocated free space on my hard disk through terminal. I've burned my brains searching the internet for a possible solution, but all in vain. I used all sorts of commands like df , du , fdisk , parted , etc. It tells me about the disks that are mounted and unmounted, but what about the unallocated ...
How to view unallocated free space on a hard disk through terminal I want to view the unallocated free space on my hard disk through terminal. I've burned my brains searching the internet for a possible solution, but all in vain. I used all sorts of commands like df , du , fdisk , parted , etc. It tells me about the di...
linux, terminal, fedora, hard-drive
78
260,963
13
https://stackoverflow.com/questions/12313384/how-to-view-unallocated-free-space-on-a-hard-disk-through-terminal
25,664,323
GIT get the commit hash prior to a specific commit
git 1.7.1 git show <hash>:<file> gives me the file based on the commit hash provided I am trying to figure out how to get the file of the previous commit before the one whose hash I have. I know I can always use the log to get all hashes and figure out which one I need, but that's not a good solution as I am trying to ...
GIT get the commit hash prior to a specific commit git 1.7.1 git show <hash>:<file> gives me the file based on the commit hash provided I am trying to figure out how to get the file of the previous commit before the one whose hash I have. I know I can always use the log to get all hashes and figure out which one I need...
git, shell, centos
76
57,296
3
https://stackoverflow.com/questions/25664323/git-get-the-commit-hash-prior-to-a-specific-commit
36,651,091
How to install packages in Linux (CentOS) without root user with automatic dependency handling?
Is it possible to use RPM or YUM or any other package manager in Linux, specifically CentOS, to install a package either already downloaded or from repo to a custom location without admin/root access? I tried building from sources, using cmake, configure, make, make install etc, but, it ended up having so many dependen...
How to install packages in Linux (CentOS) without root user with automatic dependency handling? Is it possible to use RPM or YUM or any other package manager in Linux, specifically CentOS, to install a package either already downloaded or from repo to a custom location without admin/root access? I tried building from s...
linux, centos, rpm, yum, package-managers
76
112,477
5
https://stackoverflow.com/questions/36651091/how-to-install-packages-in-linux-centos-without-root-user-with-automatic-depen
41,150,975
How to display list of running processes Python?
How to display list of running processes Python with full name and active status? I tried this command: pgrep -lf python
How to display list of running processes Python? How to display list of running processes Python with full name and active status? I tried this command: pgrep -lf python
python, linux, centos
76
222,341
6
https://stackoverflow.com/questions/41150975/how-to-display-list-of-running-processes-python
61,657,707
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available
Getting this error while compiling the kernel version :5.7-rc4 BTF: .tmp_vmlinux.btf: pahole (pahole) is not available Failed to generate BTF for vmlinux Try to disable CONFIG_DEBUG_INFO_BTF make: *** [Makefile:1106: vmlinux] Error 1
BTF: .tmp_vmlinux.btf: pahole (pahole) is not available Getting this error while compiling the kernel version :5.7-rc4 BTF: .tmp_vmlinux.btf: pahole (pahole) is not available Failed to generate BTF for vmlinux Try to disable CONFIG_DEBUG_INFO_BTF make: *** [Makefile:1106: vmlinux] Error 1
compilation, kernel, fedora
76
73,326
8
https://stackoverflow.com/questions/61657707/btf-tmp-vmlinux-btf-pahole-pahole-is-not-available
18,774,568
Installing PHP Zip Extension in CentOS
I'm attempting to install the PHP Zip extension in CentOS. My server does not have external internet access, so I downloaded it myself from PECL: [URL] . I chose 1.10.2, the latest "stable" release, and transferred it to my server. I ran: pear install zip-1.10.2.tgz and added extension=zip.so to php.ini as instructed. ...
Installing PHP Zip Extension in CentOS I'm attempting to install the PHP Zip extension in CentOS. My server does not have external internet access, so I downloaded it myself from PECL: [URL] . I chose 1.10.2, the latest "stable" release, and transferred it to my server. I ran: pear install zip-1.10.2.tgz and added exte...
php, centos, zip, pear, php-extension
75
424,788
13
https://stackoverflow.com/questions/18774568/installing-php-zip-extension-in-centos
33,510,184
How to change the MySQL root account password on CentOS 7?
I have installed mySQL on a CentOS 7 VM but I have problems logging in with root. I tried logging in without password or tried any default ones (like mysql , admin etc) I looked in the my.cnf file and there's no password. I tried changing the password by stopping the service and restarting it with: mysqld_safe --skip-g...
How to change the MySQL root account password on CentOS 7? I have installed mySQL on a CentOS 7 VM but I have problems logging in with root. I tried logging in without password or tried any default ones (like mysql , admin etc) I looked in the my.cnf file and there's no password. I tried changing the password by stoppi...
mysql, centos
74
211,276
7
https://stackoverflow.com/questions/33510184/how-to-change-the-mysql-root-account-password-on-centos-7
14,594,151
Methods to detect a public IP address in Bash
As part of an installation script, I want to make an "educated guess" about the machines public IP address. It should be as robust as possible, working on a variety of hosts and platforms. Here is an example: [URL] This script uses three methods and then defaults to the value of /etc/hostname . I have only tested this ...
Methods to detect a public IP address in Bash As part of an installation script, I want to make an "educated guess" about the machines public IP address. It should be as robust as possible, working on a variety of hosts and platforms. Here is an example: [URL] This script uses three methods and then defaults to the val...
linux, bash, shell, ubuntu, centos
72
98,681
14
https://stackoverflow.com/questions/14594151/methods-to-detect-a-public-ip-address-in-bash
17,131,048
Error when using scp command "bash: scp: command not found"
I want to use scp command to copy a local file to remote server, but I get an error message after input the password of user in remote server. ~]$ scp gitadmin.pub git@123.150.207.18: git@123.150.207.18's password: bash: scp: command not found lost connection I checked on server using the git user and it seems the scp ...
Error when using scp command "bash: scp: command not found" I want to use scp command to copy a local file to remote server, but I get an error message after input the password of user in remote server. ~]$ scp gitadmin.pub git@123.150.207.18: git@123.150.207.18's password: bash: scp: command not found lost connection ...
scp, openssh, rhel
72
169,619
3
https://stackoverflow.com/questions/17131048/error-when-using-scp-command-bash-scp-command-not-found
43,153,503
Docker on CentOS 7.2: kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1
I'm running Docker on CentOS 7, from time to time there's the following message displayed: Message from syslogd@dev-master at Mar 29 17:23:03 ... kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 I've googled a lot, read a lot of resources found and tried many ways like keeping my system updat...
Docker on CentOS 7.2: kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 I'm running Docker on CentOS 7, from time to time there's the following message displayed: Message from syslogd@dev-master at Mar 29 17:23:03 ... kernel:unregister_netdevice: waiting for lo to become free. Usage count = 1 ...
network-programming, docker, centos, centos7, loopback
72
40,587
1
https://stackoverflow.com/questions/43153503/docker-on-centos-7-2-kernelunregister-netdevice-waiting-for-lo-to-become-free
53,084,955
Why does Slack return a Segmentation fault after Fedora 29 upgrade?
I have upgraded Fedora from 28 to the latest 29 and Slack doesn't work anymore. It returns a Segmentation fault (core dumped) . Edit: The issue has been fixed on Slack 3.3.4
Why does Slack return a Segmentation fault after Fedora 29 upgrade? I have upgraded Fedora from 28 to the latest 29 and Slack doesn't work anymore. It returns a Segmentation fault (core dumped) . Edit: The issue has been fixed on Slack 3.3.4
linux, fedora, slack, fedora-29
72
12,420
4
https://stackoverflow.com/questions/53084955/why-does-slack-return-a-segmentation-fault-after-fedora-29-upgrade
24,646,320
nohup:ignoring input and appending output to 'nohup.out'
I want to start my server through nohup.php but the command is not running and displays following error nohup:ignoring input and appending output to 'nohup.out' I am using ssh through putty, this is what i am doing nohup php server1.php
nohup:ignoring input and appending output to 'nohup.out' I want to start my server through nohup.php but the command is not running and displays following error nohup:ignoring input and appending output to 'nohup.out' I am using ssh through putty, this is what i am doing nohup php server1.php
php, linux, centos, centos6, centos5
71
188,533
2
https://stackoverflow.com/questions/24646320/nohupignoring-input-and-appending-output-to-nohup-out
46,419,607
How to automatically install required packages from a Python script as necessary?
Is there anything in Python or Linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new script/system/server that I work on. Each time I end up doing a sudo pip or an apt-get or dnf anyway. Why not automate that within the script ...
How to automatically install required packages from a Python script as necessary? Is there anything in Python or Linux what basically instructs the system to "install whatever is necessary". Basically I find it annoying to install python packages for each new script/system/server that I work on. Each time I end up doin...
python, linux, ubuntu, pip, fedora
71
162,453
7
https://stackoverflow.com/questions/46419607/how-to-automatically-install-required-packages-from-a-python-script-as-necessary
20,389,193
How do I check my gcc C++ compiler version for my Eclipse?
I'm using Eclipse release version 3.7.0, but I can't find the gcc anywhere. How and where can I see the version of gcc I'm currently using?
How do I check my gcc C++ compiler version for my Eclipse? I'm using Eclipse release version 3.7.0, but I can't find the gcc anywhere. How and where can I see the version of gcc I'm currently using?
linux, eclipse, fedora
70
210,716
5
https://stackoverflow.com/questions/20389193/how-do-i-check-my-gcc-c-compiler-version-for-my-eclipse
17,079,670
httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88
I am trying to start httpd server on centos 6. It throws following error : [root@machine ~]# service httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:88 (13)Permission denied: make_sock: could not bind to address 0.0.0.0:88 no listening sockets available, shutting down Unable...
httpd Server not started: (13)Permission denied: make_sock: could not bind to address [::]:88 I am trying to start httpd server on centos 6. It throws following error : [root@machine ~]# service httpd start Starting httpd: (13)Permission denied: make_sock: could not bind to address [::]:88 (13)Permission denied: make_s...
apache, centos
69
212,735
17
https://stackoverflow.com/questions/17079670/httpd-server-not-started-13permission-denied-make-sock-could-not-bind-to-ad
19,034,542
How to open port in Linux
I have installed and web application which is running on port 8080 on RHEL (centOS). I only have command line access to that machine. I have tried to access that application from my windows machine from which I am connected to server via command-line, but it is giving connection time out error. Then I have tried to ope...
How to open port in Linux I have installed and web application which is running on port 8080 on RHEL (centOS). I only have command line access to that machine. I have tried to access that application from my windows machine from which I am connected to server via command-line, but it is giving connection time out error...
linux, tcp, centos, port
69
314,269
2
https://stackoverflow.com/questions/19034542/how-to-open-port-in-linux
30,328,506
Check if service exists with Ansible
I have an Ansible playbook for deploying a Java app as an init.d daemon. Being a beginner in both Ansible and Linux I'm having trouble to conditionally execute tasks on a host based on the host's status. Namely I have some hosts having the service already present and running where I want to stop it before doing anythin...
Check if service exists with Ansible I have an Ansible playbook for deploying a Java app as an init.d daemon. Being a beginner in both Ansible and Linux I'm having trouble to conditionally execute tasks on a host based on the host's status. Namely I have some hosts having the service already present and running where I...
centos, ansible
69
145,557
9
https://stackoverflow.com/questions/30328506/check-if-service-exists-with-ansible
42,001,338
Install ONLY mongo shell, not mongodb
As mentioned above, I need to install only the mongo shell on a RHEL instance (machine A). I have a mongodb server on a separate instance (machine B) and need to connect to that from A to run mongodump and mongorestore commands. I tried looking it up on the web but all I got was instructions to install the complete mon...
Install ONLY mongo shell, not mongodb As mentioned above, I need to install only the mongo shell on a RHEL instance (machine A). I have a mongodb server on a separate instance (machine B) and need to connect to that from A to run mongodump and mongorestore commands. I tried looking it up on the web but all I got was in...
mongodb, shell, rhel
69
86,280
6
https://stackoverflow.com/questions/42001338/install-only-mongo-shell-not-mongodb
4,609,933
How to list installed packages from a given repo using yum
I want to list all packages I have installed on a system from a given repo using yum. Usually to do this I use yum list installed | grep "something" . But now I am faced with a problem. The repo I am interested in does not have that "something" for me to grep. The packages from that repo do not have any distinctive cha...
How to list installed packages from a given repo using yum I want to list all packages I have installed on a system from a given repo using yum. Usually to do this I use yum list installed | grep "something" . But now I am faced with a problem. The repo I am interested in does not have that "something" for me to grep. ...
centos, fedora, yum
68
158,523
2
https://stackoverflow.com/questions/4609933/how-to-list-installed-packages-from-a-given-repo-using-yum
6,151,695
EC2 instance on Amazon and I am greeted with "No space left on the disk"
I have installed Amazon EC2 fedora instance and copying the files from one location to another. But I am greeted with " No space left on the disk". I did df -f . with output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 15G 0 100% / none 312M 0 312M 0% /dev/shm I want to increase the space for ec2 instance ...
EC2 instance on Amazon and I am greeted with "No space left on the disk" I have installed Amazon EC2 fedora instance and copying the files from one location to another. But I am greeted with " No space left on the disk". I did df -f . with output: Filesystem Size Used Avail Use% Mounted on /dev/sda1 15G 15G 0 100% / no...
amazon-ec2, amazon-web-services, fedora, ec2-ami
68
104,596
9
https://stackoverflow.com/questions/6151695/ec2-instance-on-amazon-and-i-am-greeted-with-no-space-left-on-the-disk
23,137,637
linker error while linking boost log tutorial (undefined references)
I have installed boost on Fedora 20 via yum and am trying some simple examples. However I have trouble to compile the first example from the logging tutorial . Compiling with g++ -c boosttest.cc works fine, but I get lot's of errors when I try to link it with g++ boosttest.o -o boosttest -lboost_log -lpthread the full ...
linker error while linking boost log tutorial (undefined references) I have installed boost on Fedora 20 via yum and am trying some simple examples. However I have trouble to compile the first example from the logging tutorial . Compiling with g++ -c boosttest.cc works fine, but I get lot's of errors when I try to link...
c++, boost, fedora, ld
68
51,731
15
https://stackoverflow.com/questions/23137637/linker-error-while-linking-boost-log-tutorial-undefined-references
18,338,322
How to find files recursively by file type and copy them to a directory?
I would like to find all the pdf files in a folder. It contains pdf files inside and more directories that contain more as well. The folder is located on a remote server I have ssh access to. I am using the mac terminal but I believe the server I am connecting to is Centos. I need to find all the pdfs and copy them all...
How to find files recursively by file type and copy them to a directory? I would like to find all the pdf files in a folder. It contains pdf files inside and more directories that contain more as well. The folder is located on a remote server I have ssh access to. I am using the mac terminal but I believe the server I ...
linux, bash, centos
67
122,584
3
https://stackoverflow.com/questions/18338322/how-to-find-files-recursively-by-file-type-and-copy-them-to-a-directory
70,926,799
CentOS through a VM - no URLs in mirrorlist
I am trying to run a CentOS 8 server through VirtualBox (6.1.30) ( Vagrant ), which worked just fine yesterday for me, but today I tried running a sudo yum update . I keep getting this error for some reason: [vagrant@192.168.38.4] ~ >> sudo yum update CentOS Linux 8 - AppStream 71 B/s | 38 B 00:00 Error: Failed to down...
CentOS through a VM - no URLs in mirrorlist I am trying to run a CentOS 8 server through VirtualBox (6.1.30) ( Vagrant ), which worked just fine yesterday for me, but today I tried running a sudo yum update . I keep getting this error for some reason: [vagrant@192.168.38.4] ~ >> sudo yum update CentOS Linux 8 - AppStre...
linux, centos, vagrant, virtualbox, redhat
67
90,290
2
https://stackoverflow.com/questions/70926799/centos-through-a-vm-no-urls-in-mirrorlist
10,325,982
How to solve jenkins 'Disk space is too low' issue?
I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make my master offline for hours?
How to solve jenkins 'Disk space is too low' issue? I have deployed Jenkins in my CentOS machine, Jenkins was working well for 3 days, but yesterday there was a Disk space is too low. Only 1.019GB left. problem. How can I solve this problem, it make my master offline for hours?
hudson, jenkins, centos, diskspace
65
149,524
10
https://stackoverflow.com/questions/10325982/how-to-solve-jenkins-disk-space-is-too-low-issue
36,651,680
Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment
I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command sudo python3 manage.py runserver --host 0.0.0.0 --port 80 Then I create a file /etc/init.d/quokkacms. The file contains following code start() { echo -n "Starting quokkacms: " python3 /var/www/quokka/manage.py runserver --host ...
Click will abort further execution because Python 3 was configured to use ASCII as encoding for the environment I downloaded Quokka Python/Flask CMS to a CentOS7 server. Everything works fine with command sudo python3 manage.py runserver --host 0.0.0.0 --port 80 Then I create a file /etc/init.d/quokkacms. The file cont...
python-3.x, centos, locale, redhat, python-click
65
62,204
2
https://stackoverflow.com/questions/36651680/click-will-abort-further-execution-because-python-3-was-configured-to-use-ascii
13,227,162
Automatically install build dependencies prior to building an RPM package
I am trying to build a .rpm package. I have just followed the steps to do that. Till now all steps were gone fine but now i just stuck with this step. I just ran the following command and got this error: rpmbuild -ba asterisk.spec error: Failed build dependencies: gtk2-devel is needed by asterisk-1.8.12.2-1.fc15.x86_64...
Automatically install build dependencies prior to building an RPM package I am trying to build a .rpm package. I have just followed the steps to do that. Till now all steps were gone fine but now i just stuck with this step. I just ran the following command and got this error: rpmbuild -ba asterisk.spec error: Failed b...
fedora, rpmbuild
63
56,478
3
https://stackoverflow.com/questions/13227162/automatically-install-build-dependencies-prior-to-building-an-rpm-package
10,624,511
Upgrade python without breaking yum
I recently installed Python 2.7.3 on a CentOS machine by compiling from source. Python 2.7.3 is installed at /opt/python2.7 and when I installed it I just changed /usr/bin/python to point to the new version. This apparently is wrong though because when I did it it broke yum. I would get the following. There was a probl...
Upgrade python without breaking yum I recently installed Python 2.7.3 on a CentOS machine by compiling from source. Python 2.7.3 is installed at /opt/python2.7 and when I installed it I just changed /usr/bin/python to point to the new version. This apparently is wrong though because when I did it it broke yum. I would ...
python, centos, yum
62
155,026
10
https://stackoverflow.com/questions/10624511/upgrade-python-without-breaking-yum
33,362,904
Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7
I installed MariaDB on CentOS 7 but I had some problems with some configuration, now it is completely misconfigured. Thus, I wanted to remove the MariaDB with "yum remove mariadb mariadb-server", after that I reinstalled it with "yum install mariadb mariadb-server". Unfortunately, the configuration remains. It seems as...
Completely remove MariaDB or MySQL from CentOS 7 or RHEL 7 I installed MariaDB on CentOS 7 but I had some problems with some configuration, now it is completely misconfigured. Thus, I wanted to remove the MariaDB with "yum remove mariadb mariadb-server", after that I reinstalled it with "yum install mariadb mariadb-ser...
mysql, centos, mariadb, yum, rhel
62
297,065
3
https://stackoverflow.com/questions/33362904/completely-remove-mariadb-or-mysql-from-centos-7-or-rhel-7
44,622,182
Python 3.6 No module named pip
I have just installed Python 3.6 on Fedora 25 (64 bits) by running dnf install python36 and I can't use any modules Python 3.5 can otherwise use just fine, for example, PyCharm complains about setup tools not being installed, also I can run python3 and issue: import aiohttp However, if run python36 and then: import aio...
Python 3.6 No module named pip I have just installed Python 3.6 on Fedora 25 (64 bits) by running dnf install python36 and I can't use any modules Python 3.5 can otherwise use just fine, for example, PyCharm complains about setup tools not being installed, also I can run python3 and issue: import aiohttp However, if ru...
python, pip, python-3.6, fedora
62
121,386
3
https://stackoverflow.com/questions/44622182/python-3-6-no-module-named-pip
10,389,988
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686
CentOS 6.2 + GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6) When I debug a simple c++ code with GDB, I saw the following warning: Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 I have tried the following methods and none of them f...
Missing separate debuginfos, use: debuginfo-install glibc-2.12-1.47.el6_2.9.i686 libgcc-4.4.6-3.el6.i686 libstdc++-4.4.6-3.el6.i686 CentOS 6.2 + GNU gdb (GDB) Red Hat Enterprise Linux (7.2-50.el6) When I debug a simple c++ code with GDB, I saw the following warning: Missing separate debuginfos, use: debuginfo-install g...
gdb, centos
61
96,234
3
https://stackoverflow.com/questions/10389988/missing-separate-debuginfos-use-debuginfo-install-glibc-2-12-1-47-el6-2-9-i686
10,729,247
apache not accepting incoming connections from outside of localhost
I've booted up a CentOS server on rackspace and executed yum install httpd 'd. Then services httpd start . So, just the barebones. I can access its IP address remotely over ssh (22) no problem, so there's no problem with the DNS or anything (I think...), but when I try to connect on port 80 (via a browser or something)...
apache not accepting incoming connections from outside of localhost I've booted up a CentOS server on rackspace and executed yum install httpd 'd. Then services httpd start . So, just the barebones. I can access its IP address remotely over ssh (22) no problem, so there's no problem with the DNS or anything (I think......
linux, apache, webserver, centos
61
170,530
11
https://stackoverflow.com/questions/10729247/apache-not-accepting-incoming-connections-from-outside-of-localhost
23,070,245
Get all files modified in last 30 days in a directory
CentOS. Need to find files modified in last 30 days to see if any of them have been infected with malware. I tried this: root@server [/home/someuser/public_html/]# find . -mtime +30 -exec ls -l {} > last30days.txt \; But instead of the last 30 days, it seems to have found everything. 22,000 files.
Get all files modified in last 30 days in a directory CentOS. Need to find files modified in last 30 days to see if any of them have been infected with malware. I tried this: root@server [/home/someuser/public_html/]# find . -mtime +30 -exec ls -l {} > last30days.txt \; But instead of the last 30 days, it seems to have...
find, centos
61
208,381
2
https://stackoverflow.com/questions/23070245/get-all-files-modified-in-last-30-days-in-a-directory
29,380,344
docker exec -it returns "cannot enable tty mode on non tty input"
docker exec -it command returns following error "cannot enable tty mode on non tty input" level="fatal" msg="cannot enable tty mode on non tty input" I am running docker(1.4.1) on centos box 6.6. I am trying to execute the following command docker exec -it containerName /bin/bash but I am getting following error level=...
docker exec -it returns "cannot enable tty mode on non tty input" docker exec -it command returns following error "cannot enable tty mode on non tty input" level="fatal" msg="cannot enable tty mode on non tty input" I am running docker(1.4.1) on centos box 6.6. I am trying to execute the following command docker exec -...
centos, docker
61
52,178
8
https://stackoverflow.com/questions/29380344/docker-exec-it-returns-cannot-enable-tty-mode-on-non-tty-input
4,112,151
How to send list of file in a folder to a txt file in Linux
I'm fairly new to Linux (CentOS in this case). I have a folder with about 2000 files in it. I'd like to ideally execute a command at the command prompt that would write out the name of all the files into a single txt file. If I have to, I could write an actual program to do it too, I was just thinking there might be a ...
How to send list of file in a folder to a txt file in Linux I'm fairly new to Linux (CentOS in this case). I have a folder with about 2000 files in it. I'd like to ideally execute a command at the command prompt that would write out the name of all the files into a single txt file. If I have to, I could write an actual...
linux, bash, shell, centos
60
168,028
2
https://stackoverflow.com/questions/4112151/how-to-send-list-of-file-in-a-folder-to-a-txt-file-in-linux
4,149,361
On linux SUSE or RedHat, how do I load Python 2.7
Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command line interface.
On linux SUSE or RedHat, how do I load Python 2.7 Can someone provide the steps needed to install python version 2.7 on SUSE and RedHat? It version that is on there is like 2.4 and I need to have it at at least 2.6 to make my script work. So after the install, I can type Python in a xTerm and get the Python 2.7 command...
python, linux, rhel, suse
60
111,881
11
https://stackoverflow.com/questions/4149361/on-linux-suse-or-redhat-how-do-i-load-python-2-7
10,278,561
How to install PHP mbstring on CentOS 6.2
How do I install mbstring with PHP on CentOS 6.2 I've tried: $ sudo yum install php-mbstring Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirror.net.cen.ct.gov * extras: centos.aol.com * updates: mirrors.seas.harvard.edu Setting up Install Process No package php-mbstring av...
How to install PHP mbstring on CentOS 6.2 How do I install mbstring with PHP on CentOS 6.2 I've tried: $ sudo yum install php-mbstring Loaded plugins: fastestmirror, security Loading mirror speeds from cached hostfile * base: mirror.net.cen.ct.gov * extras: centos.aol.com * updates: mirrors.seas.harvard.edu Setting up ...
php, linux, centos, mbstring
59
219,874
11
https://stackoverflow.com/questions/10278561/how-to-install-php-mbstring-on-centos-6-2
13,169,154
Cannot change permissions of folders within vagrant home folder
When I ssh in to my vagrant vm, I can change permissions of files and folders above and outside the vagrant user folder, and for files within the vagrant user folder. But cannot change permissions for folders under the vagrant user folder. I have the same problem whether logged in as the vagrant user and root. Is there...
Cannot change permissions of folders within vagrant home folder When I ssh in to my vagrant vm, I can change permissions of files and folders above and outside the vagrant user folder, and for files within the vagrant user folder. But cannot change permissions for folders under the vagrant user folder. I have the same ...
centos, virtualization, virtualbox, chmod, vagrant
59
58,642
7
https://stackoverflow.com/questions/13169154/cannot-change-permissions-of-folders-within-vagrant-home-folder
22,952,287
How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source?
How do I upgrade OpenSSL in CentOS 6.5? I have used these commands, but nothings happens: cd /usr/src wget [URL] tar -zxf openssl-1.0.1g.tar.gz cd openssl-1.0.1g ./config make make test make install cd /usr/src rm -rf openssl-1.0.1g.tar.gz rm -rf openssl-1.0.1g After using this command, I get the old version openssl ve...
How to upgrade OpenSSL in CentOS 6.5 / Linux / Unix from source? How do I upgrade OpenSSL in CentOS 6.5? I have used these commands, but nothings happens: cd /usr/src wget [URL] tar -zxf openssl-1.0.1g.tar.gz cd openssl-1.0.1g ./config make make test make install cd /usr/src rm -rf openssl-1.0.1g.tar.gz rm -rf openssl-...
linux, security, ssl, openssl, centos
59
151,875
11
https://stackoverflow.com/questions/22952287/how-to-upgrade-openssl-in-centos-6-5-linux-unix-from-source
16,420,092
How to make Python script run as service?
I want to run a python script in a CENTOS server: #!/usr/bin/env python import socket try: import thread except ImportError: import _thread as thread #Py3K changed it. class Polserv(object): def __init__(self): self.numthreads = 0 self.tidcount = 0 self.port = 843 self.sock = socket.socket(socket.AF_INET, socket.SOCK_S...
How to make Python script run as service? I want to run a python script in a CENTOS server: #!/usr/bin/env python import socket try: import thread except ImportError: import _thread as thread #Py3K changed it. class Polserv(object): def __init__(self): self.numthreads = 0 self.tidcount = 0 self.port = 843 self.sock = s...
python, linux, centos
58
150,895
5
https://stackoverflow.com/questions/16420092/how-to-make-python-script-run-as-service
14,802,807
compare file's date bash
I'm working on a tiny dropbox-like bash script, how can I compare the dates of 2 files and replace the old one(s) with the new one without using rsync is there any simple way to process this? can the SHA1 help me with knowing the newer?
compare file's date bash I'm working on a tiny dropbox-like bash script, how can I compare the dates of 2 files and replace the old one(s) with the new one without using rsync is there any simple way to process this? can the SHA1 help me with knowing the newer?
linux, bash, centos
57
48,843
4
https://stackoverflow.com/questions/14802807/compare-files-date-bash