Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.1K
Visualizações
Nano - File already being edited - How do I switch to the open file?

I have a tendency to miss-type while trying to Ctrl-X to exit nano.

Every now and then I'll try to re-open the file and get the Nano "File xxx is being edited". How do I switch back to the open file? And also, what am I miss-typing to cause this to happen?

over 4 years ago · Santiago Trujillo
2 Respostas
Responde à pergunta

0

nano creates a lock file once you try to edit the file, I would say just try to move it and it might work.

over 4 years ago · Santiago Trujillo Relatório

0

First check if there is a process editing the file.

$> jobs

You will get a list of background jobs, look for Stopped ones.

If there is and it's your editor, try re-attaching to it:

$> fg <n>

Else, if there is no running nano, make sure there is no lock-file.

ls -A *.swp

If there is, remove it.

rm nnn.swp

If you still have trouble editing the file, reboot and restart above. Maybe there are more things to try, but that's all I can think of...

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda