Sunday, May 5, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 608  / 1 Year ago, mon, may 8, 2023, 1:45:51

I have a Problem on my Ubuntu machine. When I try to open some file in an editor like nano, vi or sudo gedit, nothing shows up, but nano ~/.bashrc works fine without any problem.



I have two user accounts on my Ubuntu system, and it's the same problem with the other user account.


More From » text-editor

 Answers
3

You're trying to open the files with commands like this:



nano etc/apt/sources.list
nano conf/hadoop-env.sh


In the first, you forget to add the root folder! Just add a slash before the rest of the file path:



nano /etc/apt/sources.list


In the second, you need to add the Hadoop path:



nano $HADOOP_HOME/conf/hadoop-env.sh


Also, you'll probably need to open them as root user, so add sudo before all the command (just like with gedit!):



sudo nano /etc/apt/sources.list
sudo nano $HADOOP_HOME/conf/hadoop-env.sh

[#37906] Monday, May 8, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
fulerio

Total Points: 172
Total Questions: 124
Total Answers: 109

Location: Hungary
Member since Thu, Aug 6, 2020
4 Years ago
fulerio questions
;