No such file or directory when trying to create a file with nano
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
3
down vote
favorite
I am trying to create a new file:
nano/etc/apt/apt.conf.d/02proxy
When upgrading from 14.04 to 16.04, but I'm getting the error:
No such file or directory
command-line nano
add a comment |Â
up vote
3
down vote
favorite
I am trying to create a new file:
nano/etc/apt/apt.conf.d/02proxy
When upgrading from 14.04 to 16.04, but I'm getting the error:
No such file or directory
command-line nano
6
Have you tried to runnano/etc/apt/apt.conf.d/02proxy
literally? Try it with a space after the command name:nano /etc/apt/apt.conf.d/02proxy
. YouâÂÂll need root permissions for that.
â Melebius
Feb 1 at 8:37
add a comment |Â
up vote
3
down vote
favorite
up vote
3
down vote
favorite
I am trying to create a new file:
nano/etc/apt/apt.conf.d/02proxy
When upgrading from 14.04 to 16.04, but I'm getting the error:
No such file or directory
command-line nano
I am trying to create a new file:
nano/etc/apt/apt.conf.d/02proxy
When upgrading from 14.04 to 16.04, but I'm getting the error:
No such file or directory
command-line nano
command-line nano
edited Feb 1 at 21:39
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
![](https://i.stack.imgur.com/8CW8e.png?s=32&g=1)
Zanna
48.3k13120229
48.3k13120229
asked Feb 1 at 8:27
![](https://lh5.googleusercontent.com/-dPALo9hBg4g/AAAAAAAAAAI/AAAAAAAAAV8/daPaEFzF6eU/photo.jpg?sz=32)
![](https://lh5.googleusercontent.com/-dPALo9hBg4g/AAAAAAAAAAI/AAAAAAAAAV8/daPaEFzF6eU/photo.jpg?sz=32)
Anesu Gerry Mangwiro Black Whi
162
162
6
Have you tried to runnano/etc/apt/apt.conf.d/02proxy
literally? Try it with a space after the command name:nano /etc/apt/apt.conf.d/02proxy
. YouâÂÂll need root permissions for that.
â Melebius
Feb 1 at 8:37
add a comment |Â
6
Have you tried to runnano/etc/apt/apt.conf.d/02proxy
literally? Try it with a space after the command name:nano /etc/apt/apt.conf.d/02proxy
. YouâÂÂll need root permissions for that.
â Melebius
Feb 1 at 8:37
6
6
Have you tried to run
nano/etc/apt/apt.conf.d/02proxy
literally? Try it with a space after the command name: nano /etc/apt/apt.conf.d/02proxy
. YouâÂÂll need root permissions for that.â Melebius
Feb 1 at 8:37
Have you tried to run
nano/etc/apt/apt.conf.d/02proxy
literally? Try it with a space after the command name: nano /etc/apt/apt.conf.d/02proxy
. YouâÂÂll need root permissions for that.â Melebius
Feb 1 at 8:37
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
4
down vote
It seems like there is a typo in your question because there would normally be a blank space between nano
and /etc/apt/apt.conf.d/...
To create a new file named 02proxy in the /etc/apt/apt.conf.d
directory (which normally already exists) open the terminal and type:
sudo touch /etc/apt/apt.conf.d/02proxy
To open the 02proxy file for editing in nano text editor:
sudo nano /etc/apt/apt.conf.d/02proxy
Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.
add a comment |Â
up vote
0
down vote
this behavior happen if the target directory doesn't exist. you have therefore to create the parent directory
mkdir my_dir
then use nano.
nano my_file
CTRL x=>y
Creating a directory won't help if you don't put a space between the command (nano
) and the file it applies to (/etc/apt/apt.conf.d/02proxy
). The OP basically issuednanomy_file
instead ofnano my_file
.
â PerlDuck
Jul 29 at 14:18
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
4
down vote
It seems like there is a typo in your question because there would normally be a blank space between nano
and /etc/apt/apt.conf.d/...
To create a new file named 02proxy in the /etc/apt/apt.conf.d
directory (which normally already exists) open the terminal and type:
sudo touch /etc/apt/apt.conf.d/02proxy
To open the 02proxy file for editing in nano text editor:
sudo nano /etc/apt/apt.conf.d/02proxy
Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.
add a comment |Â
up vote
4
down vote
It seems like there is a typo in your question because there would normally be a blank space between nano
and /etc/apt/apt.conf.d/...
To create a new file named 02proxy in the /etc/apt/apt.conf.d
directory (which normally already exists) open the terminal and type:
sudo touch /etc/apt/apt.conf.d/02proxy
To open the 02proxy file for editing in nano text editor:
sudo nano /etc/apt/apt.conf.d/02proxy
Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.
add a comment |Â
up vote
4
down vote
up vote
4
down vote
It seems like there is a typo in your question because there would normally be a blank space between nano
and /etc/apt/apt.conf.d/...
To create a new file named 02proxy in the /etc/apt/apt.conf.d
directory (which normally already exists) open the terminal and type:
sudo touch /etc/apt/apt.conf.d/02proxy
To open the 02proxy file for editing in nano text editor:
sudo nano /etc/apt/apt.conf.d/02proxy
Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.
It seems like there is a typo in your question because there would normally be a blank space between nano
and /etc/apt/apt.conf.d/...
To create a new file named 02proxy in the /etc/apt/apt.conf.d
directory (which normally already exists) open the terminal and type:
sudo touch /etc/apt/apt.conf.d/02proxy
To open the 02proxy file for editing in nano text editor:
sudo nano /etc/apt/apt.conf.d/02proxy
Nano editor keyboard shortcuts
Use the keyboard combination Ctrl + O and after that press Enter to save the file to its current location.
Use the keyboard combination Ctrl + X to exit nano.
edited Feb 1 at 21:42
answered Feb 1 at 8:38
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
![](https://i.stack.imgur.com/zqElV.png?s=32&g=1)
karel
51.8k11110131
51.8k11110131
add a comment |Â
add a comment |Â
up vote
0
down vote
this behavior happen if the target directory doesn't exist. you have therefore to create the parent directory
mkdir my_dir
then use nano.
nano my_file
CTRL x=>y
Creating a directory won't help if you don't put a space between the command (nano
) and the file it applies to (/etc/apt/apt.conf.d/02proxy
). The OP basically issuednanomy_file
instead ofnano my_file
.
â PerlDuck
Jul 29 at 14:18
add a comment |Â
up vote
0
down vote
this behavior happen if the target directory doesn't exist. you have therefore to create the parent directory
mkdir my_dir
then use nano.
nano my_file
CTRL x=>y
Creating a directory won't help if you don't put a space between the command (nano
) and the file it applies to (/etc/apt/apt.conf.d/02proxy
). The OP basically issuednanomy_file
instead ofnano my_file
.
â PerlDuck
Jul 29 at 14:18
add a comment |Â
up vote
0
down vote
up vote
0
down vote
this behavior happen if the target directory doesn't exist. you have therefore to create the parent directory
mkdir my_dir
then use nano.
nano my_file
CTRL x=>y
this behavior happen if the target directory doesn't exist. you have therefore to create the parent directory
mkdir my_dir
then use nano.
nano my_file
CTRL x=>y
answered Jul 29 at 10:41
![](https://i.stack.imgur.com/SQZLn.png?s=32&g=1)
![](https://i.stack.imgur.com/SQZLn.png?s=32&g=1)
Badr Bellaj
1012
1012
Creating a directory won't help if you don't put a space between the command (nano
) and the file it applies to (/etc/apt/apt.conf.d/02proxy
). The OP basically issuednanomy_file
instead ofnano my_file
.
â PerlDuck
Jul 29 at 14:18
add a comment |Â
Creating a directory won't help if you don't put a space between the command (nano
) and the file it applies to (/etc/apt/apt.conf.d/02proxy
). The OP basically issuednanomy_file
instead ofnano my_file
.
â PerlDuck
Jul 29 at 14:18
Creating a directory won't help if you don't put a space between the command (
nano
) and the file it applies to (/etc/apt/apt.conf.d/02proxy
). The OP basically issued nanomy_file
instead of nano my_file
.â PerlDuck
Jul 29 at 14:18
Creating a directory won't help if you don't put a space between the command (
nano
) and the file it applies to (/etc/apt/apt.conf.d/02proxy
). The OP basically issued nanomy_file
instead of nano my_file
.â PerlDuck
Jul 29 at 14:18
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1002003%2fno-such-file-or-directory-when-trying-to-create-a-file-with-nano%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
6
Have you tried to run
nano/etc/apt/apt.conf.d/02proxy
literally? Try it with a space after the command name:nano /etc/apt/apt.conf.d/02proxy
. YouâÂÂll need root permissions for that.â Melebius
Feb 1 at 8:37