Skip to main content
12 votes
Accepted

Yum: How to show "Command Line" column in "Yum history list all" output?

You can control this with the history_list_view option For example (for a one-shot command) ... sudo yum --setopt=history_list_view=commands history list all Relevant bits of the yum and yum.conf man ...
Paul Haldane's user avatar
  • 4,557
10 votes
Accepted

read bash history via ssh does not work

Apparently bash does not enable history handling when run non-interactively. You can work around this by starting bash with the -i for interactive option: ssh root@server "echo history | bash -i | ...
wurtel's user avatar
  • 3,939
6 votes
Accepted

How can i recover bash history while i accidentally typed reboot -f

No, as far as I know not as bash maintains history in memory and only writes or appends new history items when the shell exits. When you "press the power button" (or run shutdown -f) obviously the ...
HBruijn's user avatar
  • 80.8k
5 votes
Accepted

Is there a way to log all bash displayed text (both input and output)?

script utility is exactly what you need.
Kondybas's user avatar
  • 7,054
3 votes

Is RFC 7231 the latest version about the HTTP/1.1 protocol?

HTTP/1.1 is officially described by 6 RFCs: RFC 7230, HTTP/1.1: Message Syntax Routing RFC 7231, HTTP/1.1: Semantics and Content RFC 7232, HTTP/1.1: Conditional Requests RFC 7233, HTTP/1.1: Range ...
Barry Pollard's user avatar
3 votes
Accepted

How does "nslookup -ls" work?

I can confirm that nslookup ls in Windows will issue an AXFR query. The image below shows the query response from my home DNS server to an nslookup ls query from my Windows 10 client. Servers are ...
joeqwerty's user avatar
  • 111k
3 votes

Avoid to keep command in history

I see that no one wrote this method, so I will. history -d $((HISTCMD-1)) && history -d <command or number of command> history -d deletes the mentioned entry from the history. HISTCMD ...
Itai Ganot's user avatar
  • 10.9k
3 votes

How can i recover bash history while i accidentally typed reboot -f

In your .bashrc or the like, add PROMPT_COMMAND='history -a'. This flushes the history to disk every time the prompt shows. This is also useful for synchronizing the history between multiple shells. ...
Iiridayn's user avatar
  • 314
3 votes

Is there a global, persistent CMD history?

Yes, it's possible If all you want to do is save your command line history at the end of every session, here's a simple way to do it: As other answers indicated, doskey allows you to list the command ...
pbarney's user avatar
  • 131
2 votes

Is there a global, persistent CMD history?

you could also install tabby (https://tabby.sh/). or use (Get-PSReadlineOption).HistorySavePath
Philip Kumah Jr.'s user avatar
2 votes

Is there a global, persistent CMD history?

I propose using Cygwin with Windows Terminal. It may not be exactly what you want but it works quite well for me. It also probably has some issues that I haven't discovered just yet. You can integrate ...
Vinayak's user avatar
  • 141
2 votes
Accepted

Why is the FascistLogging ssh logging mode named that?

"Fascism - a tendency toward or actual exercise of strong autocratic or dictatorial control" Dictionary definition Fascism is often linked to extremism, control, manipulation and paranoia - ...
Chopper3's user avatar
  • 102k
2 votes

Yum: How to show "Command Line" column in "Yum history list all" output?

As a complement to paul`s correct answer to apply that setting permanently without requiring to use --setopt parameters each time you can do like this: # edit file "/etc/yum.conf" ==>>&...
Mojtaba Rezaeian's user avatar
1 vote

Is RFC 7231 the latest version about the HTTP/1.1 protocol?

It must be, as it doesn't show that it's been updated by another RFC, like in the example below for RFC 2821. Whereas RFC 7231 shows no such Updated by:
joeqwerty's user avatar
  • 111k
1 vote

Keep Root Account Audit Trail

I don't think you can do this effectively if you don't trust your sysadmin. Root user can do anything on the system. You can disable root access and enable auditing for all sudo actions. However, any ...
Khaled's user avatar
  • 37.1k
1 vote

Is there a global, persistent CMD history?

clink is nice and the author publishes a chocolatey package on every release, however I would suggest DeepBlueCLI. You can use https://github.com/sans-blue-team/DeepBlueCLI to set-up Windows Security ...
John Zabroski's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible