Skip to content

How to make an alias for localhost that has a tld?

I was wondering how I would make an alias for localhost that has a tld. For example, foo.test wold connect to 127.0.0.1. I tried just adding a second line to /etc/hosts that also pointed to 127.0.0.1, but that didn’t seem to work. Although, I didn’t reboot, so that might be why. The end goal is to…

Append date to a filename in linux

I want add the date next to a filename (“somefile.txt”). For example: somefile_DDMMYYYYHHMMSS.txt Maybe a script will do or some command in the terminal window. I’m using Linux. Thanks in advance. Answer Something like can do the work:

SSH Key Exchange with alternate user

So I am using RHEL 7. I have two servers with the following user accounts root (obvious) admin I want the setup to work in the following manner. passwordless SSH from server 1 to server 2 using the admin user, but the SSH initiation is done from the root user always. We are not allowed to do ssh key exchange

What’s difference between these redis starting commands

sudo /etc/init.d/redis-server start sudo service redis-server start sudo systemctl start redis-server sudo redis-server –daemonize yes Answer The last one is “nearest to the metal”, it directly starts the Redis server process with no special options, and is “stand-alone”. I would…