Cd CLI Question

Hello all, I am new to Linux (apparently) and am taking a intro course to the OS. My terminal does not support info or man for the cd command and I would like to know: If you won't find the cd command in either /bin or /usr/bin, or in any directory listed in the PATH setting. How is it executed then? (That is, if there is no cd executable, why doesn't this command cause a “command not found” error?)

Thanks for any help!


Similar Content



User Permitted To Run Command,execute Program As Root And After Execution, Exit Root

when a command is typed(i.e. /path/to/the/program), as a normal user, he should be able to run that command , execute that program as ROOT and log out root after the execution is completed.
Only one user should be able to do it.
Hence, I have created a new user vj and added the following command in visudo:
Code:
vj ALL=(ALL) NOPASSWD: /path/to/the/program

Now user vj will be able to typein the command.

What I need is that the program which is been called must run as if it is run by a root user,and when the program is completely executed, exit the root user.

How do I proceed?

WiFi Dongle Don't Work

I have a WiFi dongle that said to support GNU/Linux, however no drivers were found on the CD, after hours of research i found this and installed the driver, I'm pretty sure my device is listed as supported, but the device is still not recognized, it is listed on lsusb command, but not recognized by any WiFi program like WiFi Radar and wireless-tools, also when i use the iwconfig command, this is what i see, i really need this wireless connection working, can you help, please?

The Write Command

I understand how to use the write command but I'm unsure about how to set up the users. If my friend in inThe uk and I'm in the USA is it possible for me to write to him via the terminal with the write command or is it only for a local network within my office?

How do I set up the people who I want to talk with via the write command? I'm looking online but everyone seems to address the question presuming the users are already set up.

Where Does The Bash Command Stop

hi guys, im trying to understand the bash rules or hash tag rules.

my understanding is the the everything to the right of the bash command is not executed? is this right? and you disable it by using a new line to enter executable commands?

Update Grub Command Not Working

I have made a change to GRUB2 bootloader in etc/default/grub.
Now I need to run 'update grub' for the change to take effect.
However, the 'update grub' command on the terminal is giving this error message:
Code:
root@debian:/# update grub
bash: update: command not found

Can someone please explain why this command is no longer working?

I've had to make a change to grub because I tried to install a new distro which meant I had to alter grub.
The install wasn't successful so I deleted the grub file and then re-installed it.
The re-installed grub needs a change so I can get sound on my pc.
However, I can't add these changes because the 'update grub' command doesn't work.

I've checked the grub file with another debian distro and they are both the same.
So now I don't know if I need to check if a different grub file is the problem or anything else.
Can someone help?

Executable Not Found From /usr/local/bin

Hi,

I installed ghostscript via yum package manager. Later I wanted a newer version of ghostscript and compiled it from source. "make install" placed the gs executable file under /usr/local/bin/gs. This works if I run the command with absolute path, but if try to run gs, the shell will output

"-bash: /usr/bin/gs: No such file or directory"

if I echo the path variable it will display

/usr/local/bin:/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/sbin

If i run whereis it will give me the correct path
gs: /usr/local/bin/gs

How do I make it work so that typing "gs" will run the executable file from the /usr/local/bin/gs?

(I am using Centos 6)

Thanks.

How Do I Pass The Command Line Errors To A File.

I am writing a pythong program which has command line executions for linux like ls and restart. I want to know how to pass the errors from the command executed to a file so that it becomes a log.

Making A .run File Run For A Printer Driver Run?

I am running puppy precise 5.7.1 and I am trying to run a printer driver but to run the driver I am told to run this command in the console: ( Desktop$ sh hplip-3.15.2.run ) but I get no such command exist message. Any help please.
Also I have looked but can't find out what the sh command does. So thanks in advance for any info/help.

Please Help! I'm Trying To Install A Program Through The Terminal

I'm sorry to ask such a simple question but every time I think I figure something out or think I'm going somewhere get stopped dead in my tracks. My friend installed linux on my computer and then moved away immediately so I have no one to help me!

I downloaded the webcam program Cheese. I found through some tutorials that I have to copy the folder to the /opt/ folder and the only way to do that is through the terminal. I found this tutorial and still can't manage to copy the folder. These are the problems I run into:

1. I don't know where to open the terminal. I've tried opening it from the extracted Cheese folder in my downloads folder and from the /opt/ folder itself. It opens up but:
2. when I type the command sudo cp -r cheese /opt/ it will ask for modernnewspeak's password. When I try to type this in nothing happens, even though it JUST let me type in the command. I pressed "enter" thinking maybe it was hiding my password and I get the message "cannot stat 'cheese'. No such file or directory"

please tell me what I'm doing wrong! I tried to follow that tutorial and look through the FAQ here but I cannot figure this out. Thank you in advance!

Error While Installing Ns2.33 In Ubuntu 10.04

hello sir,
i was trying to install ns2.33 in ubuntu10.04. i have followed the procedure. in which after the validation there was a command to creat a symlink. the command was, $sudo ln -s/home/neha/ns-allinone-2.33/ns-2.33/ns/usr/bin/ns.
i m tried this command all the way asa much asa possible. but an error has been arrived. the error is "ln: invalid option '/' ". please help me to solve this problem.