Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
You simply don't have the package ntsysv installed. Search and install it using Add/Remove Software or
Code:
yum install ntsysv
from the command line. Note that you don't need an additional interface to configure runlevels. You can do the same using the Services Configuration Tool accessible from the menu System --> Administration --> Services, unless you really need the console application.
You simply don't have the package ntsysv installed. Search and install it using Add/Remove Software or
Code:
yum install ntsysv
from the command line. Note that you don't need an additional interface to configure runlevels. You can do the same using the Services Configuration Tool accessible from the menu System --> Administration --> Services, unless you really need the console application.
i connect via SSH
Code:
[root@localhost admin]# yum install ntsysv
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: ftp.linux.org.tr
* updates: ftp.linux.org.tr
* addons: ftp.linux.org.tr
* extras: ftp.linux.org.tr
base | 1.1 kB 00:00
updates | 951 B 00:00
addons | 951 B 00:00
extras | 1.1 kB 00:00
Setting up Install Process
Parsing package install arguments
Package ntsysv-1.3.30.1-2.i386 already installed and latest version
Nothing to do
[root@localhost admin]# ntsysv
bash: ntsysv: command not found
[root@localhost admin]#
As I already mentioned, maybe it is a PATH problem. Check it out. It may depend on the command you issued to login as root: if you used su from another user's console, maybe you missed the argument - (hyphen). If you omit the hyphen, root will inherit the user's environment, PATH included, without /sbin and /usr/sbin in it.
And how can i list installation directory for example i installed mysql and php and apache how can i see htdocs (public_html) dir. or mysql installation dir ? (lik echo $PATH)
And how can i list installation directory for example i installed mysql and php and apache how can i see htdocs (public_html) dir. or mysql installation dir ? (lik echo $PATH)
A useful command is whereis, to list the locations where the executables and the manual pages ar installed, e.g.
Code:
whereis mysql
If you want to see where a package has copied (that is installed) its files, you can simply use the very powerful rpm command:
Code:
rpm -ql mysql
You can grep the results to see specific sections:
Code:
rpm -ql mysql | grep bin # for executables
rpm -ql mysql | grep doc # for the htdocs and so on...
While you will use yum to install and search available packages (since it manages dependencies and keeps the packages database updated), rpm has many useful options at hand. Just an example: if you want to see what package has provided a specific file, you can do
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.