Skip to main content

Questions tagged [history]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
117 views

keyboard combination to search forward in bash history

Pressing ctrl-R allows me to search thru command line history Pressing ctrl-R allows me to go back in command history matches What is the keyboard shortcut to jump forward in command history matches? ...
opensas's user avatar
  • 1,191
-1 votes
1 answer
366 views

How to create file history/ restore from previous version so that can retrieve accidentally delete shared network folder or file

How to create file history/ restore from previous version so that can retrieve accidentally delete shared network folder or file
OSS IT's user avatar
  • 25
0 votes
1 answer
449 views

Why is the FascistLogging ssh logging mode named that?

The docs describe Fascist Logging mode quite well, so I understand what it does. Basically it is a variant of debug logging enabled with FascistLogging yes But why is it named that? I'm sure the ...
Philip's user avatar
  • 133
0 votes
0 answers
943 views

Which history file does the command in ssh client commandline go to?

If I do ssh user@server and then, inside the bash session, I run whatever, when ssh session is closed these executed commands go to .bash_history file. Simple and clear. But if I do ssh user@server ...
Osqui's user avatar
  • 135
0 votes
0 answers
29 views

How to capture each linux command before sending it out?

I want to monitor the server at a more strict history. Since each user can delete their own history file, it is better to capture each command to a history file in the background, which is ...
George Y's user avatar
  • 568
0 votes
1 answer
598 views

How can python's os.system([command]) bypass the history record? [closed]

I mean, how dare it? These two scripts have different record in history (at least by history command) # echo "hello" the direct command in shell will result in a record in history, however if I ...
George Y's user avatar
  • 568
1 vote
0 answers
96 views

KSH/Bash History for jailed SSH users

How can I keep a history of activities for chroot'd SSH (not SFTP) users? I've tried: created a .sh_history in their home with the proper permissions created a custom $HISTFILE in .profile and in its ...
Dumb  admin's user avatar
1 vote
0 answers
2k views

Linux history filled with priv_escl_start and _end after security changes

We are going through a process to make our linux servers more secure following a scan. I notice that on some of the machines, we now have lines like: LANG=C; printf "priv_escl_start_%s" "[random 8 ...
Johnny Doe's user avatar
3 votes
4 answers
2k views

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

I'm doing an university work on HTTP and I try to explain what happens when there is an HTTP connection between a client and a server. To do this, I'm using the "curl -v -i" command on an Ubuntu ...
john smith's user avatar
1 vote
0 answers
1k views

RDP client logs (history of connections from local PC to any remote servers)

is there a log file in Win10 where i can find all history of connected RDP sessions from machine? Example: on my local computer i connect to different remote servers and i need history of all login ...
Kaminari's user avatar
0 votes
0 answers
1k views

ssh connection doesn't write entry to wtmp or leave command history

I have a root user using a java application that logs into the servers I administrate. When this ssh client logs in, it doesn't write an entry in wtmp (or utmp that I can tell). It does not seem to ...
Emo Mosley's user avatar
0 votes
1 answer
453 views

Find security packages installation history on Debian

I need your help. I need to find out the date of the last installation of security packages on debian servers. I have been looking for a solution based on log files (dpkg.log, history.log) but it ...
Nico81's user avatar
  • 1
0 votes
1 answer
190 views

Restrict users to run 'history -d [arg]' and 'set +o history' commands

We are in the early stages of standardizing our infra. As an immediate step, we want to restrict users from manipulating the history. Have setup some restrictions for the same. But recently found that ...
Ram Kumar's user avatar
0 votes
0 answers
107 views

Command history but only for one directory

Is it possible to get the history of all commands that were entered but just from one folder? like the history command, but only output should only show commands that the user entered while in a ...
Sean Davey's user avatar
4 votes
1 answer
2k views

read bash history via ssh does not work

This does work: server:~> history | tail -100 | grep etc 908 2018-01-17 08:53:43 cd /etc/apache2/vhosts.d/default.d/ .... .... But this does not: ssh root@server "history | tail -100 | ...
guettli's user avatar
  • 3,873
1 vote
1 answer
9k views

How does "nslookup -ls" work?

I've been going through the 4th Edition (2001, yes, very old) of the O'Reilly "DNS and Bind" book, and it keeps talking about nslookup, which seems to be relatively hard to get one's hands on in this ...
Quuxplusone's user avatar
12 votes
2 answers
8k views

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

When I use yum history list command on my CentOS-7 remote server it shows a list of yum history in below format: ID | Command line | Date and time | Action(s) | Altered -------...
Mojtaba Rezaeian's user avatar
0 votes
1 answer
204 views

Keep Root Account Audit Trail

I am the owner of a company. I want to keep an audit trail of our Unix administrator who has root access to the CentOS system. How can I configure it such that the audit trail cannot be bypassed and ...
user399598's user avatar
1 vote
1 answer
431 views

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

As in title, I would like to log everything is displayed by the bash, that is the inputs and the relative outputs. Let's say I would like an "history" for everything, not only input commands. I ...
FedFranz's user avatar
  • 113
0 votes
2 answers
7k views

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

Scenario : After working on my Linux server [CentOS 7] ,I typed reboot -f in my terminal, is it possible to retrieve my bash history after rebooting it? I understand that reboot -f will forcefully ...
BlueBerry - Vignesh4303's user avatar
1 vote
1 answer
4k views

Disable the ability to hide Bash command history

A user can hide the command history in Bash by either append a space before the command unset HISTFILE How can I disable this?
Ryan's user avatar
  • 6,101
0 votes
1 answer
118 views

setting up history variables for ssh user

im logging into a particular ip using ssh user@ip then i type in a few commands, then i exit and when i relogin and type history, all the previous commands are gone. Now i understand i have to export ...
user1356163's user avatar
4 votes
2 answers
3k views

How can I put the last zsh command in history into a clipboard?

It often happens to me, that I just used a command and I need to copy/paste it either to a different terminal window/IM or whatever. On a Mac, I can use the pbcopy command to get something in ...
Jakub Arnold's user avatar
  • 1,804
1 vote
1 answer
325 views

How to i skip history? [duplicate]

Possible Duplicate: Avoid to keep command in history Is there a facility to skip history for some commands in Linux? How can I skip history for a login? When I login as user abc, I don't want ...
User4283's user avatar
  • 781
3 votes
2 answers
2k views

Preventing bash (and ksh) history alteration in Linux

From the looks of things, fixing ksh to make history alteration impossible is fairly easy. I've seen all the recommendations to make HIST* environment variables read-only, and the use of chattr to ...
Mei's user avatar
  • 4,590
121 votes
6 answers
252k views

Why does x86 represent 32bit when x64 represents 64bit? [closed]

My question is why is the shorthand for 32-bit x86 when the shorthand for 64-bit is x64? I'm guessing it has something to do with the days of 386s and 486s, when the 32-bit processors all ended in 86,...
Simon Foster's user avatar
  • 2,672
3 votes
1 answer
562 views

How to show command history with executed time on Unix

I tried export HISTTIMEFORMAT='%D %T' but it seems the time stamp of commands executed before I set HISTTIMEFORMAT will be the time I logged in current session. Is this normal? Is there any way to ...
Stan's user avatar
  • 1,387
1 vote
3 answers
2k views

HISTCONTROL=ignoreboth not working debian lenny

Can anybody confirm if by setting the the following env variables under debian lenny will make previous history entries not to be saved. GNU bash, version 3.2.39(1)-release export HISTCONTROL=...
user avatar
9 votes
6 answers
8k views

How can I record Linux commands?

Is there a way to record the Linux commands I use and reuse them on another machine or in case I want to reinstall the machine? In example record how I set up NginX, PHP and permissions in my lab ...
Jonas's user avatar
  • 1,207
158 votes
13 answers
336k views

Is there a global, persistent CMD history?

Sometimes I forget how the exact syntax of a CMD command looks and then I would like to search my own CMD history. Clearly, within the same session, you can browse it with the up and down arrow keys ...
raoulsson's user avatar
  • 4,833
12 votes
11 answers
1k views

Unix Legendry (and other *nix as well)

This is the twin to this question. Most obscure/upvoted answer will get the answer vote! Most Unix and Unix-like systems have a "traditional history" that is passed down with each generation, so ...
42 votes
6 answers
6k views

Avoid to keep command in history

I use bash and I would like to avoid some commands being kept in the history. Is it possible to do that for the next command only? Is it possible to do that for the entire session?
Luc M's user avatar
  • 3,370
6 votes
9 answers
1k views

Windows Legendry

Most obscure/upvoted answer will get the answer vote! Most Unix and Unix-like systems have a "traditional history" that is passed down with each generation, so that newcomers can see and understand ...
4 votes
3 answers
439 views

What is this bastard sys admin or something like that

I've read some long time ago something about the stories of a sys admin complaining about their LUSERS It was something like the bastard sys admin or something like that. Do you have a link from ...
OscarRyz's user avatar
  • 384