Edit file from virtual terminalHow to edit. profile from shellUser credentials not recognised in virtual terminalwith wrong pam_environment unable to loginCan't login to my user account.profile edit in terminal log loopWhich edit functions are acceptable in grub?Ubuntu login screen, ctrl+alt+f1 incorrect passwordterminal is illCannot type into terminal - Ubuntu Server 16.04.1ctrl+alt+f1 cause login loop due to my changes on ~/.profile
Find d this ones stumped me help?
Are commoners actually this squishy?
Explanation for why nickel turns green in hydrochloric acid
How much damage will a creature take if it runs across lava while wearing a Ring of Water Walking?
How are hillsides farmed?
How to delete music as it's being played
Intuition for the derivative of the exponential function
Foiled Bank Robbery
How does Berkeley justify existence of other minds?
Why is Microwaved mac & cheese burnt where they touch?
Who is Alice referring to when she was talking to Kate?
Problem with a commutative diagram
Why would shrinking TEMPDB log lead to slowness?
What's the origin of the trope that dragons used to be common but aren't any more?
Response to referee after rejection
Do European politicians typically put their pronouns on their social media pages?
How can I increase the rate of regeneration in humans without the possibility of tumors developing?
Questions about `cs_new:...` and friends and their TeX relatives regarding global, local, long, nopar, protected, expandable and naming
Mutate my DNA sequence
Can someone interview their sibling?
For the Single Entry Schengen visa, do the microstates (Monaco, San Marino and the Vatican City) count?
Is This Constraint Convex?
How to draw 15-puzzle in LaTeX
How does the Powerful Build racial feature affect carrying capacity?
Edit file from virtual terminal
How to edit. profile from shellUser credentials not recognised in virtual terminalwith wrong pam_environment unable to loginCan't login to my user account.profile edit in terminal log loopWhich edit functions are acceptable in grub?Ubuntu login screen, ctrl+alt+f1 incorrect passwordterminal is illCannot type into terminal - Ubuntu Server 16.04.1ctrl+alt+f1 cause login loop due to my changes on ~/.profile
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?
command-line login
add a comment
|
I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?
command-line login
You can use vi editor. Googleusing vi editor
– FedonKadifeli
May 18 at 15:21
Use a non-graphic editor,vi
,vim
,ed
,nano
. You will have to read theman
page first. Or see if the editor you used left a backup file~/.profile~
.
– waltinator
May 18 at 15:23
I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH
– Emil Majer
May 18 at 15:28
I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.
– Emil Majer
May 18 at 15:42
add a comment
|
I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?
command-line login
I made some mistake in my .profile during adding some path, now I can't login into my account. All i can do is enter terminal ctrl+alt+f3 and login there. How can I edit from there this file and make everything back to niemal?
command-line login
command-line login
asked May 18 at 15:19
Emil MajerEmil Majer
11 bronze badge
11 bronze badge
You can use vi editor. Googleusing vi editor
– FedonKadifeli
May 18 at 15:21
Use a non-graphic editor,vi
,vim
,ed
,nano
. You will have to read theman
page first. Or see if the editor you used left a backup file~/.profile~
.
– waltinator
May 18 at 15:23
I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH
– Emil Majer
May 18 at 15:28
I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.
– Emil Majer
May 18 at 15:42
add a comment
|
You can use vi editor. Googleusing vi editor
– FedonKadifeli
May 18 at 15:21
Use a non-graphic editor,vi
,vim
,ed
,nano
. You will have to read theman
page first. Or see if the editor you used left a backup file~/.profile~
.
– waltinator
May 18 at 15:23
I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH
– Emil Majer
May 18 at 15:28
I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.
– Emil Majer
May 18 at 15:42
You can use vi editor. Google
using vi editor
– FedonKadifeli
May 18 at 15:21
You can use vi editor. Google
using vi editor
– FedonKadifeli
May 18 at 15:21
Use a non-graphic editor,
vi
, vim
, ed
, nano
. You will have to read the man
page first. Or see if the editor you used left a backup file ~/.profile~
.– waltinator
May 18 at 15:23
Use a non-graphic editor,
vi
, vim
, ed
, nano
. You will have to read the man
page first. Or see if the editor you used left a backup file ~/.profile~
.– waltinator
May 18 at 15:23
I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH
– Emil Majer
May 18 at 15:28
I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH
– Emil Majer
May 18 at 15:28
I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.
– Emil Majer
May 18 at 15:42
I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.
– Emil Majer
May 18 at 15:42
add a comment
|
1 Answer
1
active
oldest
votes
There are CLI editors available in Ubuntu:
- nano
- vi
If you're unable to simply call nano or vi you can try with absolute paths:
/bin/nano .profile
or
/usr/bin/vi .profile
And if you want to bring the default .profile back you can use the template from /etc/skel/.profile
/bin/cp /etc/skel/.profile /home/yourname/.profile
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1144309%2fedit-file-from-virtual-terminal%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
There are CLI editors available in Ubuntu:
- nano
- vi
If you're unable to simply call nano or vi you can try with absolute paths:
/bin/nano .profile
or
/usr/bin/vi .profile
And if you want to bring the default .profile back you can use the template from /etc/skel/.profile
/bin/cp /etc/skel/.profile /home/yourname/.profile
add a comment
|
There are CLI editors available in Ubuntu:
- nano
- vi
If you're unable to simply call nano or vi you can try with absolute paths:
/bin/nano .profile
or
/usr/bin/vi .profile
And if you want to bring the default .profile back you can use the template from /etc/skel/.profile
/bin/cp /etc/skel/.profile /home/yourname/.profile
add a comment
|
There are CLI editors available in Ubuntu:
- nano
- vi
If you're unable to simply call nano or vi you can try with absolute paths:
/bin/nano .profile
or
/usr/bin/vi .profile
And if you want to bring the default .profile back you can use the template from /etc/skel/.profile
/bin/cp /etc/skel/.profile /home/yourname/.profile
There are CLI editors available in Ubuntu:
- nano
- vi
If you're unable to simply call nano or vi you can try with absolute paths:
/bin/nano .profile
or
/usr/bin/vi .profile
And if you want to bring the default .profile back you can use the template from /etc/skel/.profile
/bin/cp /etc/skel/.profile /home/yourname/.profile
answered May 18 at 16:06
ComarComar
9941 gold badge2 silver badges11 bronze badges
9941 gold badge2 silver badges11 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1144309%2fedit-file-from-virtual-terminal%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
You can use vi editor. Google
using vi editor
– FedonKadifeli
May 18 at 15:21
Use a non-graphic editor,
vi
,vim
,ed
,nano
. You will have to read theman
page first. Or see if the editor you used left a backup file~/.profile~
.– waltinator
May 18 at 15:23
I cant use command vi or even simple ls, it shows error that this command is in /bin and /bin is not in the PATH
– Emil Majer
May 18 at 15:28
I found solution, I added bin to path by typing export PATH=/usr/bin:/bin then I can use vim.
– Emil Majer
May 18 at 15:42