Questions tagged [rhel]
Red Hat Enterprise Linux (RHEL) is a commercially supported Linux distribution.
284
questions
90
votes
3
answers
37k
views
What is the difference between these commands for bringing down a Linux server?
Reading "What is the difference between Halt and Shutdown commands?" , I generally have an idea what does the command shutdown does, with or without -h/-r options.
The "halt" command performs ...
16
votes
2
answers
33k
views
Separate Network Traffic on Two Network Interfaces
Could you lend your expertise in understanding how to go about
configuring the separation of network traffic on two network interfaces?
As I understand thus far, static routes are used for network ...
42
votes
3
answers
247k
views
How can we change root password?
If we don't know the root password and don't have root access to the machine, how can we change the root password?
73
votes
11
answers
262k
views
What is the equivalent of 'update-grub' for RHEL, Fedora, and CentOS systems?
In Ubuntu (and I guess in Debian too) there is a system script named update-grub which automatically executes grub-mkconfig -o with the correct path for the GRUB configuration file.
Is there a similar ...
55
votes
3
answers
57k
views
.bash_profile not sourced when running su
I have a user, say user1, which has modifications to its .bash_profile, one of them changing the PATH, e.g.: export PATH=/some/place:$PATH. This change works fine if I log on as user1 or do a su - ...
4
votes
2
answers
5k
views
Why does swappiness not work?
We have a RHEL 7 machine, with only 2G of available RAM:
free -g
total used free shared buff/cache available
Mem: 31 28 0 ...
175
votes
12
answers
285k
views
Is CentOS exactly the same as RHEL?
I'm sure this question has been asked again and again elsewhere (I did not find anything specific to CentOS vs RHEL in SE), but I would still like to ask and confirm a few specific points.
I am well ...
49
votes
5
answers
53k
views
/dev/tcp listen instead of nc listen
With a netcat listener like:
nc -l <port> < ~/.bashrc
I can grab my .bashrc on a new machine (doesn't have nc or LDAP) with:
cat < /dev/tcp/<ip>/<port> > ~/.bashrc
My ...
23
votes
3
answers
67k
views
What does eno mean in network interface name 'eno16777736' for CentOS 7 or RHEL 7?
Under consistent network device naming scheme, what does 'eno' stand for in network interface name eno16777736 for CentOS 7 or RHEL 7?
21
votes
2
answers
145k
views
What is the best way to add a permanent route?
I need to add a route that won't be deleted after reboot. I read these two ways of doing it :
Add ip route add -net 172.X.X.0/24 gw 172.X.X.X dev ethX to the file /etc/network/interfaces
or
...
4
votes
2
answers
2k
views
Commands for determining level of usage of server
I am scripting a new program that will connect to a cluster of machines in a VM park, and hopefully check their level of usage.
The VM clients are a combination of RHEL and CentOS, and runs on ...
84
votes
6
answers
109k
views
Listing packages in Yum that depend on another installed package
I am trying to install a 3rd-party RPM package on RHEL5 which depends on version 3.4 of sqlite. According to Yum I already have 3.3.6 installed.
Is there a way to list the installed packages that ...
71
votes
4
answers
224k
views
Unable to delete file, even when running as root
I am in the process of migrating a machine from RHEL 4 to 5. Rather than actually do an upgrade we have created a new VM (both machines are in a cloud) and I am in the process of copying across data ...
44
votes
3
answers
117k
views
Piping from grep to awk not working
I am trying to grep the ongoing tail of file log and get the nth word from a line. Example file:
$ cat > test.txt <<EOL
Beam goes blah
John goes hey
Beam goes what?
John goes forget it
Beam ...
39
votes
8
answers
128k
views
Parallelise rsync using GNU Parallel
I have been using a rsync script to synchronize data at one host with the data at another host. The data has numerous small-sized files that contribute to almost 1.2TB.
In order to sync those files, I ...