LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   weird*terminal*behaviour*-*Dell*mini9 (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/weird%2Aterminal%2Abehaviour%2A-%2Adell%2Amini9-732890/)

tensor1 06-14-2009 03:42 PM

weird*terminal*behaviour*-*Dell*mini9
 
Hi,

The Terminal program on my mini9 has a weird problem that almost makes it unusable.
If I type a command at the keyboard it gives a can't find the command error message.
But if I copy the same command from a web page and paste it into the terminal it will work!
Bellow is an example of output copied from the terminal window.
It first shows the typed command then the pasted command results.

randy@randy:~$ sudo reboot
bash: sudo reboot: command not found
randy@randy:~$ sudo reboot
[sudo] password for randy:

jsteel 06-15-2009 03:06 AM

It looks like it's including the space between "sudo" and "reboot" as part of the command as it should just say "sudo: command not found". If you just type "ls" does that work? Is it just when there are two parts to the command that it says "not found"? For example "ls /home/".

deathalele 06-15-2009 05:22 AM

at a guess it might be that sudo isn't installled,

try "su -c firefox"
and you'l have to tupe i n the root password

jsteel 06-15-2009 05:38 AM

But sudo works when he pastes it in. I'm pretty sure it's something to do with the spaces in commands.

tensor1 06-15-2009 04:36 PM

re-weird*terminal*behaviour
 
jsteel,

I*think*your*suggestion*of*the*space bar*causing*the*problem*may*be*true.
I*used*the*keyboard*to*try*the*"ls"*command*without*a*space*and*with*a*space.

randy@randy:~$ ls
Desktop Examples netbeans-6.5.1 Pictures Videos
Documents installed-software NetBeansProjects Public
Download Music PDF Templates
randy@randy:~$ ls*/home/
bash: ls*/home/: No such file or directory
randy@randy:~$


Also*I*noticed*that*when*typing*into*this*blog*form,*spaces*appear*as*"*"

jsteel 06-15-2009 04:58 PM

What distribution and desktop environment/window manager do you use? A very strange problem you have! Sorry I can't help further.

tensor1 06-16-2009 02:18 PM

re - weird terminal behaviour
 
jsteel,

My dell mini9 has ubuntu 8.04 and gnome 2.22.3.

However your comment: "something to do with the spaces in commands" made me look again at the keyboard layouts found under system > preferences. There were 2 layouts, "can" and "us" with "us" set as the default. I removed the "can" layout and the terminal seems to be working properly now.

When I first purchased the mini9 the installation screen prompted me for which country? I entered canada and my keyboard mapping problems began. I then added the "us" layout as the default which allowed normal keyboard operation with applications but not in the terminal. So thanks for giving me the hint about the terminal's response to typed commands.


All times are GMT -5. The time now is 03:13 AM.