Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2020-11-07 12:10:49

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,527
Website

[self-remedied] exiting commands help needed

I need a little help with command-line exiting in a couple of cases.

First, I accidentally typed/ran cd `, which output bquote> and I can’t seem to exit this no matter what exit command I can think of to try.

Second, I was trying to unpack a tar file and got this error
tar: Failed to set default locale
Then it put me on a new blank line and, again, no matter what I type I can’t exit the blank line, or whatever it is.

In this last case I just want to exit before I bother trying to fix the locale problem.

Anyone set me straight on these issues?

Just curious, in macOS, when a boob like me runs into this kind of thing, can you just close the Terminal tab to kill the process or whatever and get back to ~/? That seems a little too easy to be true so I’ve not dared to try it out of fear of leaving the processes(?) hanging.

Last edited by Destry (2020-11-07 12:38:11)

Offline

#2 2020-11-07 12:26:41

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,527
Website

Re: [self-remedied] exiting commands help needed

Destry wrote #326694:

Second, I was trying to unpack a tar file and got this error
tar: Failed to set default locale
Then it put me on a new blank line and, again, no matter what I type I can’t exit the blank line, or whatever it is.

Okay. Solved this one by killing all tar processes in a new command-line tab:

pkill tar

Though that does not solve the initial error that tripped me up.

Last edited by Destry (2020-11-07 12:27:58)

Offline

#3 2020-11-07 12:37:31

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,527
Website

Re: [self-remedied] exiting commands help needed

Destry wrote #326694:

First, I accidentally typed/ran cd `, which output bquote> and I can’t seem to exit this no matter what exit command I can think of to try.

And dealing with that one just requires using ctrl + c. Huh. Easy.

Seems using the right keywords is smart internet searching. ;)

Offline

#4 2020-11-07 13:00:44

phiw13
Plugin Author
From: Japan
Registered: 2004-02-27
Posts: 2,168
Website

Re: [self-remedied] exiting commands help needed

Destry wrote #326696:

And dealing with that one just requires using ctrl + c. Huh. Easy.

The standard OS command to stop a process: Command + . (Command + period) should work as well.

Seems using the right keywords is smart internet searching. ;)

In those situations where the command line does something my demented silly head ordered wrongly, I always need an eternity, the keywords seem to be stuck as well :-(

PS – to your OP, quoting the Terminal will always kill the running process(es) without collateral damages. The output of a running script might be damaged though.


Where is that emoji for a solar powered submarine when you need it ?

Offline

#5 2020-11-07 17:13:47

Destry
Member
From: Haut-Rhin
Registered: 2004-08-04
Posts: 4,527
Website

Re: [self-remedied] exiting commands help needed

Thanks for the info.

Offline

Board footer

Powered by FluxBB