How can I edit usr/bin

I'm trying to run Chromium OS from within Ubuntu 13.10 64-bit. I'm running into a couple of issues, and one of the possible solutions I've found requires editing a file called usr/bin/chromeos. I assumed I could enter that file name in the terminal and it would give me the text editor so I could edit it. However, I get this response:

$ /usr/bin/chromeos
bash: /usr/bin/chromeos: No such file or directory

What can I do? I think I've had this happen before when trying to edit other files like this. Thanks!

3

4 Answers

If you want to see the content of a file use

sudo cat /usr/bin/chromeos

If you want to edit the file

sudo nano /usr/bin/chromeos
0

If you wanted to edit a file called /usr/bin/chromeos, you would need to use an editor. It's also in an area of the disk that is habitually owned by root, so you'd need to elevate your permissions to do it.

sudo nano /usr/bin/chromeos # text mode editor
sudo -i gedit /usr/bin/chromeos # graphical editor

But how much that actually helps is not certain at this point.

Your needed file is most likely /usr/sbin/chromeos not /usr/bin/chromeos (note the s). And you have to open it just like Oli said in the other answer.

0

You can find this file by executing the following command:

find /* | grep chromeos

and if you need to narrow down the results, this command might help:

find /* | grep "bin/chromeos"

Additionally, if the file is located at /usr/bin/chromeos then you would need to use the sudo command to edit the file and you would also need to specify the text editor you would like to use such as nano or gedit like in this example:

sudo nano /usr/bin/chromeos

However, we already know that this file does not exist at /usr/bin/chromeos so you will need to use the actual path to the file you found using the find command earlier.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like