CentOS 5 :: Get Command Working Without Entering The Path?

Mar 3, 2011

For example, what I have now as a root user on CentOS 5.5:

# setsebool
bash: setsebool: command not found

I need to enter /usr/sbin/setsebool to get it working

The same is with some other commands:

# service httpd restart
bash: service: command not found

And so on. I know, that I need to add path somewhere, as I did it before on FreeBSD. But I don't know where?

View 2 Replies


ADVERTISEMENT

General :: Command Path Is In PATH But Bash Does Not Find The Command

Jul 12, 2011

kernel 2.6.21.5, slackware 12.0
GNU bash 3.1.17

Code:

As you can see, /usr/local/bin is in the path. However, bash does not look for nasm in /usr/local/bin.

If I am root, things go well:

Code:

View 16 Replies View Related

Software :: Command - Use To Partition A Device Without Entering Any Menus?

Dec 2, 2010

Does anyone know of a command I can use to partition a device without entering any menus? I want to run the command with all config parameters and flags like disk size, device name, partition number and type, etc and it should just create the required partition.

View 5 Replies View Related

Fedora :: Add Path In .bashrc By Commenting Out Old Path And Adding New One - Command Source ~/bashrc

Jun 14, 2011

When I add some path in .bashrc by commenting out old path and adding new one like this:

#EXPORT HOME_PLAY=/home/gem/old_play
EXPORT HOME_PLAY=/home/gem/play
EXPORT PATH=$PATH:HOME_PLAY

After saving above changes, I enter the command: source ~/.bashrc Now if I do echo $PATH, the path shows both the old PLAY_HOME and new PLAY_HOME. This is really bad and messes up a lot of things in my project. This problem only goes away if I logout or reboot, a rather very long process. What is happening is that the old path is added to new path element and the old path includes the old path element you want to remove.

View 10 Replies View Related

CentOS 5 :: Encrypted 4 Partitions - Entering Password Just Once?

Feb 28, 2010

I just installed CentOS 5.4 (x86_64) and I encrypted my /home /var /tmp and /mnt/Storage partitions, along with my swap partition. My only complaint is that when I boot, I have to enter my password 4 times, and I did not pick a short password. The password is the same for all 4 partitions. Is there anyway I can set things up so I can just type my password once? Once I get everything set up, I won't be booting that often, but right now it is a PIA.

View 2 Replies View Related

CentOS 5 :: Entering GUI After Smartd Services Started

Jun 15, 2011

Why after I boot from runlevel 5 and smartd services is started, I've got a black screen. I know that the GUI is exist but it looks like doesn't appear (black screen). I do following actions :
1. First I check /etc/sysconfig/desktop there is no data (empty), then I add to /etc/sysconfig/desktop this line :
DESKTOP=GNOME
DISPLAYMANAGER=GNOME

View 3 Replies View Related

Ubuntu :: 10.10 Installation - Everything Stop Working When Entering Setup Info (login Password - Timezone)

Dec 21, 2010

i am having a problem with the installation with ubuntu 10.10 during the installation, i was entering my setup info (login password, timezone, etc.) when everything stopped working, it wouldnt let me continue, the forward button wouldnt work. i let it set for a good 30 minutes but it wouldnt do anything.

so unable to continue, i restarted and tried to boot from my cd drive and now it wont boot from the drive, and since i let ubuntu delete my windows partition, i cant boot from it so i basically have a blank hard drive. the cd drive will boot other cds because i booted hirens boot cd in an attempt to make sure the cd drive was functioning and ran diagnostics to make sure the drive was alright.

View 6 Replies View Related

CentOS 5 Server :: Yum Command Not Working On System / What To Do?

Jul 8, 2009

Yum command is not working on my system today!
when i write any commands using yum, such as yum check-update or
yum install some package it shows the following code...

shall add something to my repository?

View 2 Replies View Related

Programming :: Make Python Programs Run Without Entering The Command Python?

Mar 22, 2009

I want to be able to do

sudo ./program.py

instead of always having to do

sudo python program.py

What do I need to change?

View 5 Replies View Related

General :: Difference Between PATH=$PATH:$1 & PATH=$1:$PATH?

Jan 16, 2011

I found the following function in /etc/profile file.

[Code]...

1. I dont undestand what "if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)"" this if statement actually comapres??

2. Also what is the difference between PATH=$PATH:$1 & PATH=$1:$PATH

View 14 Replies View Related

Ubuntu :: Sudo Not Picking Up Command In PATH?

Jan 20, 2010

On my Ubuntu server I'm running into an issue that I've never seen before even though I've been using Linux for many years. Basically sudo is not finding a command located in my path. Here is a transcript illustrating the problem.

Code:
prg ~: echo $PATH
/opt/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
prg ~: sudo echo $PATH

[Code]....

View 7 Replies View Related

Ubuntu :: Short Path On Command Line?

Mar 1, 2011

I have a quick question: how can I make the path short on the console? My problem is that if I descend 10 levels in a directory tree, the path becomes so long that it takes more, than one line of the console window. Is there a way to shorten it, and show only the name of the current directory, without the whole path, i.e., instead of

Code:
v923z@penguin: first/second/third/fourth/fifth/sixth/seventh/eighth/ninth/tenth>
only

[code]....

View 3 Replies View Related

SUSE :: How To Fix $PATH Variable - Command Not Found

Dec 20, 2010

I tried to install JRE to my remote Suse 11 SP1 linux.After i finished with files i typed like

export PATH=<my jre path>

now i have no bash commands - typing ls causes

-bash: ls: command not found

i think that i should re-export my PATH to the right value but i don't know what it should be. I tried differend values

/etc/profile
/usr/bin

View 3 Replies View Related

General :: (Netstat -a Command) Why Some Sockets Do Not Have Path Name

Oct 15, 2010

When I run "netstat -a" commnand, it display:

Active UNIX domain sockets (servers and established)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 20269 /tmp/.gdm_socket
...
unix 2 [ ] DGRAM 997161
unix 3 [ ] STREAM CONNECTED 942628 /tmp/.X11-unix/X0
unix 3 [ ] STREAM CONNECTED 942627
unix 3 [ ] STREAM CONNECTED 942626 /tmp/.X11-unix/X0 ....

Why some socket don't have Path name? And what mean's RefCnt = 2?

View 2 Replies View Related

General :: Command Line - Can Add A Shortcut To Replace A Path

Jul 24, 2010

For example, I always go to this path:

/user/something/somefolders/somewhere

but I don't want to type

cd
/user/something/somefolders/somewhere

in the terminal all the time, can I have some short hand to do so? for example, can I do something like

cd commandPlace

to replace the path?

View 5 Replies View Related

Ubuntu :: Specify Network Path Filespec In A Command Line?

Aug 24, 2010

I need to add a network path to a configuration file, but I can't figure out how to write the path.

The command dir \computernamesharename works in a Windows command line.

ls //computername/sharename/ does not work under Linux. ("No such file or directory.") ls smb://computername/sharename/ does not work either.

Nautilus shows the location as smb://computername/sharename/, and I can read and write in the shared directory, so it's mounted and I have access.

So how do I get it to work? How do I specify the path so a command line will recognize it?

View 3 Replies View Related

General :: Find Command To Search Wildcard In Path?

Dec 8, 2009

I need a command to search for any file in a directory like so:

/home/*/upload/* and then change permissions any file in that directory.

Find doesn't seem to match what I need.

View 12 Replies View Related

General :: Command Not Found For All But PWD And Echo - Path Empty

Mar 1, 2011

I logged into my Red Hat Enterprise Linux machine at work (use it for software development) and the primary GUI does not load. Instead, widgets appeared for xclock, xterm, and Firefox. In the terminal, I start typing in commands to try to figure out what's going on, but all commands are not found except pwd and echo. I 'echo $PATH' and that returns just an empty, blank line. 'echo $SHELL' lets me know I'm using cash.

The likely cause was my attempt to install Adobe Reader Firefox plugin yesterday. After it downloaded, I ran the binary but Firefox didn't seem to recognize that I had installed it, so I went into my .cshrc file and added the adobe folder to the path. That didn't seem to work, so I gave up, deleted the binary and the folder I installed to, and removed that directory from the path in the .cshrc file. This last thing (the export PATH line in that file) I'm certain is back exactly as it was before.

I have successfully added the /bin and /usr/bin back to the path from command line via
setenv PATH /usr/bin:/bin
but of course it doesn't stick after reboot nor does it magically load the primary GUI. I'd rather not go through the effort of creating a ticket for our company's Global Service Desk cuz there's no telling how long that could take to resolve. In the meantime, I can't do any programming.

View 23 Replies View Related

General :: Command To Get Install Path Of Applications/rpm Packages?

Jun 30, 2010

I am looking out for a command which can give me the list of applications installed and the corresponding install paths for those.let me know if there is any such command. Also, i am using rpm command to get the list of packages installed(i am assuming that this shows the list of applications installed).

View 4 Replies View Related

General :: PATH Variable - Command Not Found On New Terminal

Aug 3, 2011

I am using CentOS5.5 & everytime it is showing command not found. If I export the path as below it will be working fine until a reboot. Again same error i.e command not found if I open new terminal. Every time I am exporting as below:

#export PATH=/sbin/:$PATH
#export PATH=/usr/sbin/:$PATH
#export PATH=/usr/bin/:$PATH
#export PATH=/bin/:$PATH

How can I set these permanently as that the paths should automatically be exported for everyone user whenever the system boots. And command completion also should happen for eg. #fdi (press tab), then it should show available options such as fdisk, etc.

View 7 Replies View Related

Red Hat :: Setup User's PATH Env When Sudo Command In RHEL5 ?

Dec 16, 2008

In RHEL5, the PATH of root is /sbin and /usr/sbin...., the PATH of common user has not /sbin or /usr/sbin, how to give the /sbin and /usr/sbin to a common user when he run command which sudo?

View 3 Replies View Related

General :: $PATH Variables, Soft Links, And Command Not Found?

Sep 17, 2010

I am having problems with symbolic links and the $PATH variable.I have a directory:# /usr/rulerX/squarewhere /usr/rulerX/square is a symbolic link such that:

# ls -la
square --> square.hg.current
My path variable is set as:

[code]....

View 2 Replies View Related

Ubuntu :: Java Set Path - Javac Command Doesn't Work

Mar 27, 2010

I have installed jdk1.6_0_0 to kubuntu 8.10. But javac command doesn't work yet.

How do I set path?

Here are the outputs i got from typign some commands

View 6 Replies View Related

General :: Command For Finding File / Directory From Current Path

Apr 30, 2010

I am total new to linux as I worked mostly on RTOS (symbian). My problem is, I need to find the file IOSTREAM.H and I am following commands below:
1) cd /
2) find . iostream.h ( finds the file / directory from the current path)
It shows No such File or Directory

View 7 Replies View Related

General :: Command Line - Get Relative Path From Two Absolute Paths In Shell?

May 13, 2010

We have two paths. First one is directory, second either dir or file.

/a/b/c and /a/d/e.txt

Relative path from first path to second will be: ../../d/e.txt

How to get it in linux terminal?

PS: For those who ask "what is use case?" - creating lots of relative symlinks (just as an example)

View 1 Replies View Related

Fedora :: Give The Command For Directory Path And Image Located Drive

Aug 28, 2010

problem during fedora x8664 installation. how to give the command for directory path and image located drive. the procedure to install fedora for the first time.

View 2 Replies View Related

General :: Command To Get Source ( Full HTTP/FTP ) Path Of 'Installed' RPMs?

Jul 17, 2010

Is there a command to know " From where a specific RPM package was downloaded & installed ( The full HTTP/FTP path ) " ? For example, if I had previously installed Firefox from here [URL] is there a specific rpm query, or any other place, from where I can get the full ftp path back.

View 1 Replies View Related

General :: Result Of Type Command Is Hashed And Shows Another Path In Brackets?

May 30, 2011

I came across this reult of the type command (hashed) in another post. (see below).

Code:

fraespappp8:/data/apps > type topic_file_publish.sh
topic_file_publish.sh is hashed (/data/apps/pnbgstk/publication/topic_file_publish.sh)
This (result = hashed) is new to me.

I wonder which kernel/distro/shell it is from.

View 1 Replies View Related

CentOS 5 :: How To Add /sbin To $PATH

Nov 24, 2010

I have installed CentOS 5.5 x86-64 on my HP 6710b laptop and currently am in the middle of adjusting it to my needs (software/hardware development). As stated in the subject I can't add /sbin to $PATH. I have tried editing .bash_profile in my home directory and adding /sbin to PATH=$PATH:$HOME/bin, but it does not help. It's not a big problem, al though it would be much easier to use some commands (ifconfig for example) globaly.

View 3 Replies View Related

OpenSUSE :: Path Not Working When Executing From Script?

Jul 26, 2010

I use tcsh. When I execute by hand a command that is in my path...located in say "~/bin/myscript"....the command executes without an issue. I don't need to use the absolute path "~/bin/myscript", I can simply type the command "myscript" since the path "~/bin" is in my .tcshrc file. When I execute the same command from a script, I get a "command not found" error. A similar issue is when I use the absolute command, but a library necessary the programs' execution is defined within my .tcshrc file. I'll get a library not found error.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved