Avatar of coldchillin
coldchillin

asked on 

Saving the output from chkconfig to file

I am running the chkconfig to see what services are running at boottime...i'm new to Linux...how do I save this output to file? I want to compare it to other servers we are running.
Linux

Avatar of undefined
Last Comment
Julian Parker
ASKER CERTIFIED SOLUTION
Avatar of nedvis
nedvis
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of nedvis
nedvis
Flag of United States of America image

Couple bash basics :
 >  redirects command output to a eigther device ( monitor or e.g. serial port ) or file .
 If you omit exact location where the file has to be written
 (  /home/nedvis from my example #2)
 file will be created in directory you're currently in.
So , make sure to login as root  (su),  check what directory you're in
( command is pwd - I think it stands for "p-rint w-orking d-irectory" )
and if you want change directory to where you want to save file.
( command would be :  cd   /home/<user_name> )
Avatar of Julian Parker
you can also use diff (or sdiff, my preference) to compare the two systems

Linux
Linux

Linux is a UNIX-like open source operating system with hundreds of distinct distributions, including: Fedora, openSUSE, Ubuntu, Debian, Slackware, Gentoo, CentOS, and Arch Linux. Linux is generally associated with web and database servers, but has become popular in many niche industries and applications.

71K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo