LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-13-2021, 10:57 PM   #1
Salam M. Ahmed
LQ Newbie
 
Registered: May 2021
Posts: 6

Rep: Reputation: Disabled
nano refuses its termination & its Process ID does not show up in htop


Hello better people,

I am having rather annoying issue with my Xubuntu OS:
Once upon time, and while adding an alias to the bottom of my .bashrc file, [I] was forced to terminate "nano" program abnormally via Xubuntu's default terminal (because it froze). then and upon editing the same file again with same editor, nano, to see if any issue appears - an issue did appear........

"File .bashrc is being edited (by Salam with nano 2.9.3, PID 6352); continue?"
below those words, however, three options were visibly/visually available: Yes , No , Cancel. "NO" was my option followed by "Ctrl + X" to exit the nano program.

So I went ahead and executed "htop" command to kill process 6352 - only to discover the PID in question does not exist. normally, closing all programs and reboot the OS should fix the issue. however, that did not fix the issue. so, I tried to shutdown the OS altogether; nothing good came from that.

Since My English is not best allow Me, please, to summarize:
nano program works fine, but NOT with .bashrc file in particular. rebooted and even powered off the computer; no change. same issue still exist.

Kindly: help Me. I will GREATLY appropriate it.


Your Chattel,
Salam M. Ahmed.


================================

Unnecessary Clarification:
By " terminate "nano" program abnormally " I mean kill it with: kill -9 command.
 
Old 08-13-2021, 11:11 PM   #2
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
Welcome to LQ!

Nano supports Vim style file locking, so it has probably created a lock file which is why it is persistent after a reboot.

Vim names these files, also called recovery files, same as the file being edited with a ".swp" suffix and places them in the same location as the edited file.

So look in your home directory for a file named similar to .bashrc but with a .swp suffix, like .bashrc.swp, and simply delete it. You should then be able to edit your .bashrc normally.

Last edited by astrogeek; 08-13-2021 at 11:13 PM.
 
1 members found this post helpful.
Old 08-14-2021, 04:28 AM   #3
Salam M. Ahmed
LQ Newbie
 
Registered: May 2021
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks A MILLION time

I am EXTREMELY thankful Man! Your suggestion worked just fine. It was a .bashrc.swp file at home directory which/that was causing the issue. once again: I am SUPER thankful to You. May God bless you and your family. The reason why I am REALLY happy is because I was planning to re-install my Xubuntu 18.04.5 because of this issue but all thanks to you, Excellent Man, I will not.

"Excellent Life" shall always be uttered any time I am grateful. Good Bye.
 
Old 08-14-2021, 05:27 PM   #4
astrogeek
Moderator
 
Registered: Oct 2008
Distribution: Slackware [64]-X.{0|1|2|37|-current} ::12<=X<=15, FreeBSD_12{.0|.1}
Posts: 6,263
Blog Entries: 24

Rep: Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194Reputation: 4194
You are welcome!

May peace and truth keep us all!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: htop (interactive process viewer) Linux Performance Monitoring tool LXer Syndicated Linux News 0 11-25-2013 05:00 AM
[SOLVED] Does htop and free -m show ballooned memory? samanka80 Linux - Server 7 08-27-2013 03:35 AM
free, top and htop show different memory usage wulp Linux - General 2 07-13-2011 12:22 AM
Does the termination of a process release file and other resources. clivebluston Linux - Newbie 3 04-15-2011 06:13 AM
Gotta love those &#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&#1649;&# iLLuSionZ Linux - General 5 11-18-2003 07:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:38 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration