the or letter doesn't work in the terminal "||"

Asked by omayma

the or letter doesn't work in the terminal "||"

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Manfred Hampl
Solved:
Last query:
Last reply:
Revision history for this message
actionparsnip (andrew-woodhead666) said :
#1

Can you please give an example.

Revision history for this message
Manfred Hampl (m-hampl) said :
#2

What is the output of the following commands:

ls || whoami
uname -a
lsb_release -crid
ls nonexistingfile || whoami

Revision history for this message
omayma (omayma-gomaa) said :
#3

My question was that i can't write this letter (|)
for example if i want to write
log-file.log | grep"error"

in the terminal appears like this
 log-file.log > grep"error"

note my Ubuntu on virtual machine

Revision history for this message
Manfred Hampl (m-hampl) said :
#4

In that case you seem to have a Problem with your keyboard settings.
If you check your keyboard settings, does this correctly describe your hardware?

Revision history for this message
omayma (omayma-gomaa) said :
#5

how can i do this ?

Revision history for this message
Best Manfred Hampl (m-hampl) said :
#6

click on the cog wheel icon in the top right corner, select system settings and then text entry. This should show the code of the used keyboard layout. What is it, and what layout is your keyboard?

Revision history for this message
omayma (omayma-gomaa) said :
#7

ya thank you it was english (us ) but when i added english (uk ,extended winkey)
it worked!!

Revision history for this message
omayma (omayma-gomaa) said :
#8

Thanks Manfred Hampl, that solved my question.