Skip to main content

All Questions

Tagged with
0 votes
2 answers
58 views

if statement - simple bash scripting

I am working on a simple script that checks if there is .vimrc file and what is configured in that file: if [ "$(ls -a /root | grep .vimrc)" = ".vimrc" ]; then echo "...
Belphegor's user avatar
0 votes
1 answer
1k views

(base) cat command doesn't work

as a newcomer to the world of Ubuntu, I was testing cat command. After creating a file with JOE, I tried to see its content with cat. (base) someone@computer:~$ cat sth.txt However, the result is: ...
fgh's user avatar
  • 81
2 votes
2 answers
472 views

Cat command output varies unusually in regards to * character

I'm running the following command on a fairly standard Ubuntu 11.04 installation running under vSphere: sudo cat /home/*/.ssh/authorized_keys Basically, I am using puppet for ssh key management and ...
Richard Martinez's user avatar
2 votes
2 answers
8k views

Error in the command "cat file | xclip"

The command works with the user "heo". But I get the error by "$ su another_user; cat file | xclip": No protocol specified Error: Can't open display: :0.0 A superuser has black CLI, no error message ...
user avatar