How to set Auto Complete “service” command on Redhat

I have been using SuSE Linux for some time and I love SuSE Linux service script that activated with a symbolic link. In order to start a SSH service, I can easily issue a command “rcsshd start”.

For Redhat or Centos Linux, you’re require to type command such as “service sshd start” and the main problem is NO auto complete for service command by default. Yes I admitted I’m lazy guy!

So how to set AUTO COMPLETE “service” command on Redhat/Centos?

Type:
complete -W "$(ls /etc/init.d/)" service
Read more

Possibly Related Posts:


Fedora 10 Artwork

Fedora 10 is just around the corner, there is an election in the Fedora voting system for members of the art group to vote on the default theme for Fedora 10.

Key Milestones

2008-05-13 Fedora 9 Release
Fedora 10 Planning & Development Begins
2008-07-22 Fedora 10 Alpha freeze
2008-08-05 Fedora 10 Alpha release
2008-09-11 Fedora 10 Beta freeze
Fedora 10 Feature Freeze–Planning & Development Ends
Fedora 10 String freeze
2008-09-23 Fedora 10 Beta release
Allow Fedora 10 pre-branch
2008-10-14 Fedora 10 Translation deadline
2008-10-21 Final Development freeze
2008-10-28 Fedora 10 Preview Release
2008-11-18 Fedora 10 final release (GA)

The candidates are:

Gears

InvinXble

Neon

Ananconda

The vote will be open for 36 hours only so please get your vote in ASAP. The vote will close at 1 AM UTC Sep 24 (9 PM EDT Sept 23).

Read more

Possibly Related Posts:


How To Force User Change Password At Next Login on Linux

My previous post talked about How To Show Linux User Password Expires. I would like to share “How to force user change password at next login on Linux“.

Option 1:
passwd command – change user password
Use the following syntax:
passwd -e

  • -e Force the user to change password at next login

Setting password expire for user test

planetmy:~ # passwd -e test
planetmy:~ # chage -l test
Minimum: 0
Maximum: 90
Warning: 7
Inactive: -1
Last Change: Unknown, password is forced to change at next login
Password Expires: Never
Password Inactive: Never
Account Expires: Sep 11, 2008

Login as user ‘test’
login as: test
Using keyboard-interactive authentication.
Password:
Using keyboard-interactive authentication.
Password change requested. Choose a new password.
Old Password:
Using keyboard-interactive authentication.
New Password:
Using keyboard-interactive authentication.
Reenter New Password:
Last login: Thu Sep 11 10:13:22 2008 from 192.168.1.102
test@planetmy:/>

Note: This is apply to SuSE Linux 9 and 10 but NOT Red Hat Linux.

Read more

Possibly Related Posts:


Red Hat webcast UNIX to Linux- Rearchitecting for the Future

UNIX to Linux: Rearchitecting for the future.

Date: Tuesday, August 26, 2008
Time: 2 p.m. EDT
Speaker: Joel Berman, Director Marketing Strategy, Red Hat
Erich Morisse, Marketing Manger, Red Hat
Overview:
Want to get more consistency and speed from your systems? Learn about migrating to Linux, the cost-effective solution to making your systems more horizontally scalable.
Receiving winning benchmarks even before it was released, Red Hat Enterprise Linux 5 truly offers the most affordable and sophisticated solution for your organization. Its open source server applications and virtualization capabilities allow you to achieve more while paying less. Use fewer people to manage more machines than on UNIX. Work with the same budget and do more. Red Hat Enterprise Linux 5 has everything you need to move your organization towards a successful future.
Learn more about migrating and get expert advice to help your organization make its move. In this webcast, Joel Berman and Eric Morisse will discuss the benefits and cost savings from a UNIX to Linux migration, including specific case studies and migration experiences. The session will also include a Q&A session to answer your questions about migration.

Read more

Possibly Related Posts:


Red Hat Get a New CEO

According to eWeek news, the Linux company – Redhat announced on Dec. 20 that long-time president and CEO Matthew Szulik is resigningand will be replaced by James M. Whitehurst, a former Delta chief operating officer, as of the first of next year.

The explanation for this surprising move was that Szulik felt he had to leave to attend to family health matters. Sources close to Red Hat said that Szulik's wife is quite ill.

Red Hat announced outstanding financial results for its third fiscal quarter, which ended Nov. 30. The Red Hat company's revenue for the quarter jumped to $135.4 million.

Read more

Possibly Related Posts:


Next Page →

Planet Malaysia

  • Follow us on Twitter


  • web www.planetmy.com