Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Hot answers tagged

7

To fix this problem, you should reinstall Python 2.7 shipped with CentOS 7. (See below as for why you should reinstall, and how you should manage newer versions of software in a distro such as CentOS.) Reinstalling older Python from RPM Since yum is not working, you'll have to do most of it manually, by downloading the packages and reinstalling them using ...


2

Based on @Freddy's comment.* I restarted another terminal window and it worked. *If this helps you please upvote his comment.


2

echo " Enter the name of your directory. You should enter the absolute path to the directory if it is not found in the current directory!" -- prints the text read location - expects you to enter some text and stores in in a variable $location echo $location - prints the variable $location filecount=$(...) - stores the output of the command in a variable $...


2

Above mentioned script used to find the pathnames of files whose size is less than 4 KB and has a filename suffix .txt. It would not handle a value of $location that contains spaces etc. as the variable expansion is unquoted. It would furthermore store the pathnames as a single string, which would make it difficult to count them if any pathname contains ...


2

If you can modify the script and if you can use crontab, then you might use the @reboot timing in crontab to rerun the script. The behaviour of the script would be dual, depending on how it's called. So eg. if it's run with a parameter -s or --second-run, then it would do the after-reboot stuff. Introducing two main functions in the script like first_run and ...


1

If you remote server has a DNS Server configured (check in /etc/resolv.conf) the SSH Server will try to do a reverse DNS lookup of the client's IP address. If it's not resolvable, it will wait for a 30s timeout to give you access. So it may be not hanging. Also check if you can ssh from within the server (through the 127.0.0.1 local IP) to check if it ...


1

A virus scanner isn't likely to do much for the local linux machine, but you might be using it to scan uploaded files from OSes that aren't so safe. Or it might be removing evil attachments from email it processes. I say, humbly, that if you have to ask, you should leave it on. It is chewing on something, when you see the weight of it, so it might be doing ...


1

What you see using history is recorded by the shell, not by su. su itself doesn’t record the commands that are run as root. The author might have wanted to contrast this with sudo which does log its arguments (and can even be configured to record entire sessions).


1

Here's how a switch works: The switch has several network ports, and those are connected point-to-point to a NIC on a computer. If the NIC can do 25 GB/s, that means that the point-to-point connection will use a protocol that does 25 GB/s. Now with a dumb switch, that would also mean that the incoming connection routed to that NIC is restricted to 25 GB/s. ...


1

This worked for me: Once you are are in emergency mode run xfs_repair -L /dev/dm-0 && reboot Log in and in a terminal run sudo xfs_fsr /dev/mapper/centos-root sudo xfs_fsr /dev/dm-0 reboot Not 100% sure what the issue is but all my centOS VMs regardless of version does this. I was working on this issue for a week.


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