LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2015, 11:17 AM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,419

Rep: Reputation: 55
RHEL changed the w default options in 7!!! Is there a way to get them back?


RHEL changed the w default options in 7!!! (or at least Centos did) Is there a way to get them back?

In particular the -f flag is gone now as a default option, to show the IP, of the person connecting.

Which means instead of a simple 1 letter:
Code:
w
You have to do:
Code:
w -f
or
Code:
finger
If there an easy way to add that option back as a default option? (Other than making an alias).
 
Old 03-29-2015, 11:54 AM   #2
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,284

Rep: Reputation: 371Reputation: 371Reputation: 371Reputation: 371
According to the man page, this looks like a change made by the developera of "w", not necessarily by the Red Hat folks. According to the man page, the only way to change it would be to recompile the application, meaning you'd have to grab the src rpm, change the build confirguration, rebuild the binary RPM, and reinstall it. Honestly, creating a per-user or system-wide alias would be the path of least resistance here.
 
Old 03-29-2015, 01:10 PM   #3
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,711

Rep: Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279Reputation: 1279
Quote:
Originally Posted by abefroman View Post
RHEL changed the w default options in 7!!! (or at least Centos did) Is there a way to get them back?

In particular the -f flag is gone now as a default option, to show the IP, of the person connecting.

Which means instead of a simple 1 letter:
Code:
w
You have to do:
Code:
w -f
or
Code:
finger
If there an easy way to add that option back as a default option? (Other than making an alias).
You can always make an alias for it:

alias w=/usr/bin/w -f
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
unable to get default ip address for interface connected back to back chakka.lokesh Linux - Networking 5 08-25-2014 04:02 AM
[SOLVED] Xubuntu 14.04 - Default panel removed. I Can't return it back to default mode. Jader Linux - Newbie 3 05-16-2014 11:50 AM
Default Java Options vs. Tomcat6 Options Orangutanklaus Linux - Software 2 05-09-2013 10:38 AM
Firefox, I changed my default profile for login, how do I change it back ? TroelsSmit Linux - Newbie 5 03-19-2010 08:35 AM
HELP! I changed something and can't change it back! non3ntity Linux - Newbie 13 07-02-2009 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration