Questions tagged [history]

The history of Unix systems and their main components. Please DO NOT USE this tag for shell-related questions; use "command-history" instead.

Filter by
Sorted by
Tagged with
5
votes
2answers
80 views

What ever became of the “prep” program? And what can I use instead on modern Linux systems?

Long ago, in Seventh Edition UNIX (a/k/a V7), there was a program called prep. Its primary use was to take files of text, and break them up into one word per line, for further processing by other ...
0
votes
1answer
21 views

What is the difference between “n” and “r” option on history command?

I have read the history command help page and tried both of the options(n& r). As far as I understand, both options ensure that the history file is read and valid in the current shell, so it does ...
1
vote
1answer
44 views

Proprietary files during the Unix wars

While reading some papers on the history and evolution of Unix, I keep falling on this text in some way or another even here about some files that were proprietary of AT&T and present in BSD ...
1
vote
2answers
48 views

Difference between bash $HOSTNAME and tcsh/zsh $HOST

Is there any difference between bash's $HOSTNAME and zsh's $HOST? If no, is there a historical reason for bash to chose the $HOSTNAME variable when tcsh and zsh use $HOST?
2
votes
1answer
24 views

How can I run a shell command without being added in history? [duplicate]

How can I run a shell command without being added in history? I don't want to purge the command history, I just don't want my next shell command doesn't show up in the history. Is this possible?
-4
votes
3answers
96 views

is Linux a reverse engineering thing of Unix

I'm new to Unix/Linux, sorry if my question is dumb, below is my understand of the relationship of Unix and Linux, please correct me if I was wrong: Linus Torvalds wrote Linux kernel based on Unix (...
0
votes
0answers
16 views

How to save gedit changes right along with nano changes, instead of appending ~?

I've got a .nanorc file that I love, records all changes to files when using nano. Gedit, on the other hand, just writes out a file next to the live version with a ~ appended. Is there some bit of ...
1
vote
1answer
30 views

Explanation of `history -c;` in the following well known snippet for preserving bash history

I am using the following code in my .bashrc file for keeping everything in history when I have multiple tmux panes open: # Avoid duplicates HISTCONTROL=ignoredups:erasedups # When the shell exits, ...
2
votes
4answers
74 views

How to speed up grep on large history?

I have an unlimited .zsh_history which is currently at 10k lines. I often want to see all commands from history that have a certain string, for example curl. If I do history | grep curl it takes a ...
0
votes
2answers
32 views

What are the best tricks to narrow down to the required command among similar looking commands during the reverse search of history

I have lines of codes all of which look similar. Giving some examples below gmx trjconv -s md_0_10.tpr -f md_0_10.xtc -o md_0_10_center.xtc -center -pbc mol -ur compact gmx trjconv -s md_0_10.tpr -f ...
-3
votes
1answer
58 views

What does LINUX stands for

Does the term "LINUX" stands for anything. Until now, I was of the opinion that this term is derived from "LINUS". However, some articles on internet give following: Linux = Linus Torvald's Unix ...
1
vote
3answers
382 views

What does the letter 'u' mean in umask?

Is it "user mask" or something? Wikipedia does not have details, but says the feature has been in Unix since 1978. POSIX just says it is the "file mode creation mask".
0
votes
0answers
37 views

How do you get z/OS USS to use the up-arrow and down-arrow keys to scroll command history?

When connecting to z/OS (USS) using, I'd like the USS shell to handle keys the same way they do in Ubuntu. I have these settings: echo $TERM displays xterm-color256 echo $SHELL displays /bin/sh ...
0
votes
0answers
48 views

Control characters in bash history scramble subsequent lines

Sometimes, when I invoke history in bash, it starts printing normally, and at some point switches to garbled characters: Oddly, when I copy that from my terminal and paste it here, the characters are ...
0
votes
0answers
48 views

Who was the person who actually coined the term “zombie process” and where were they working when they did?

Oftentimes there is a good story behind how a computer term got its name. I was wondering if anybody out there knew who the first person was that used/coined the term "zombie process", where was that ...
2
votes
4answers
267 views

Why is an executable called a “text file”?

In the course of updating software today I got the error "Text file busy", which got me wondering: Why is a Unix (or Linux) executable called a "text" file when that seems so counterintuitive and ...
23
votes
3answers
4k views

Why is cp's option not to overwrite files called --no-clobber?

cp is a massively popular Linux tool maintained by the coreutils team of the GNU foundation. By default, files with the same name will be overwritten, if the user wants to change this behaviour they ...
0
votes
2answers
92 views

Historically as well as today, what was or is the commonly accepted default argument for a command to show its help page?

I stumbled upon this the first time when I wanted to add an option -h to my program and got an error that -h is already in use: With add_help=True, Python's argparse automatically creates a help page ...
1
vote
2answers
111 views

What are EL2HLT, EL3HLT, EL3RST?

There was a thread about ENOANO, explaining an obscure errno macro that still lingers around. I would like to similarly ask about these errno values: what the hell were they for? EL2HLT "Level 2 ...
0
votes
0answers
28 views

How can I track what commands were ran by all users on a Debian machine? [duplicate]

I want to log every command that is ran by any user on my machine. If possible, I’d like the full path to the executable, not just the shell command. I know I can achieve this by looking at the bash ...
0
votes
0answers
108 views

ksh not saving history in it's HISTFILE and HISTTIMEFORMAT not working

I have created a custom shell script and put it inside /etc/profile.d/ that declares the HISTFILE. It works on bash and sh however it does not seem to work in ksh. As can be seen below, it gets the ...
0
votes
0answers
61 views

Hardware requirements for BSD 4.4 Lite?

I am trying to track down the hardware requirements for BSD 4.4 Lite. I have a custom CPU, and I am currently looking at porting an OS to one as an afterthought. I picked BSD 4.4 because the ...
3
votes
1answer
86 views

Why isn't installing with apt/yum to a home directory a mainstream feature?

This is a history related question of a sense, tightly related to the use cases of Linux. Am open to closing it if it's off topic. Why is the default to always use sudo when installing with package ...
2
votes
1answer
106 views

How can I find out more about the history of GNU coreutils commands?

Can I somehow find out more about the history of the development process of the GNU coreutils commands? For example, have su and runuser (which provide kind of similar functions, yet were decided to ...
-3
votes
1answer
93 views

What is the 38;5 sequence in $PS1?

I tried to find info online, but I could not find any. It seems that many people use a specific sequence of numbers, without actually providing any explanation why. More specifically, my $PS1 in ...
2
votes
2answers
1k views

why does rm need -r for an empty folder?

One thing that always bugged me: touch a rm a ok, it works as expected mkdir a rm a will require -r to work; but I don't understand what is recursive in this? if the folder is empty, there is ...
2
votes
2answers
592 views

Origin of the word console in computing

Nowadays within the programming community, console mostly refers to a text-based environment, either software (shells, terminals, cli) only or hardware included. But why is it so called?
0
votes
0answers
89 views

What happened to Bento Linux?

I came across a nifty device at a yard sale from ~2010, and at the time there was a distro called Bento Linux that had been ported to run on it. It seems that that distro died, but there are a ...
2
votes
6answers
1k views

Redirect output on-the-fly - looks not possible in Linux, why?

I tried web search but have not found answer by searching for Linux redirect output on the fly. As far as I understand, output to say stdout works by using file descriptor 1: $ ls -l /proc/pid/fd/1 ...
37
votes
3answers
6k views

When did Unix stop storing passwords in clear text?

When did Unix move away from storing clear text passwords in passwd? Also, when was the shadow file introduced?
2
votes
1answer
120 views

What is the historical reason for using curly braces {} as placeholder in find -exec

Everyone knows find . -exec foo {} \; and at some point stopped thinking about it. But recently I came back to the question that arose when I first learned it: Why would anyone choose {} as the ...
2
votes
1answer
44 views

Was /etc/yum/repos.d ever a thing?

In some places I've read, users have mentioned the path /etc/yum/repos.d along side /etc/yum.repos.d. Was this a path that actually used at some point? I even loaded of CentOS 5.11 and it's still /...
1
vote
1answer
31 views

How to find the changes done to a particular kernel module through all releases

I need to access source code of all past versions of read_write.c under /fs/ from 3.10 to 5.3. So far I had to go through https://elixir.bootlin.com/ repeatedly and look at every single version that ...
1
vote
1answer
131 views

Ampersand in the passwd GECOS field

When expanding the /etc/passwd GECOS field to get the user's full name, should we expand only the first ampersand (& character), or all ampersands? In a GECOS field with comma (,) delimited ...
2
votes
2answers
109 views

Why is the which command so hard to eradicate? [closed]

I'm coming from places like Why not use "which"? What to use then? and https://stackoverflow.com/questions/592620/how-to-check-if-a-program-exists-from-a-bash-script and am myself a long-...
0
votes
0answers
73 views

Is xrender always faster than the core protocol?

I had read this paper on the design and initial adoption/purpose of the xrender extension: https://www.usenix.org/legacy/publications/library/proceedings/usenix2000/freenix/full_papers/packardrender/...
1
vote
1answer
402 views

How to capitalize the word “unix”

Is "unix" supposed to be "unix", "Unix", or "UNIX"? The closest question I've seen is Expansion of the word UNIX. I also found this page that says it is only capitalized at the beginning of a ...
0
votes
3answers
117 views

Kind of files which just have extension, like .bashrc or .cshrc

I'm wondering about files that have a name starting with a dot e.g. .bashrc or .cshrc have distinct feature? (Could we say .bashrc extension?) Maybe these kind of files are a member of a category? ...
0
votes
2answers
92 views

Why does the command 'source' have that name?

I wonder why a command that executes commands from a file in the current shell is named source. I can't see a relation between run commands in the current shell and the meaning of the english word ...
3
votes
3answers
740 views

History: what is the meaning of the name 'xargs'?

The common unix utility program grep is an abbreviation of "globally search a regular expression and print", which makes grep a case of "does what it says on the tin". The name informs us of the ...
1
vote
1answer
17 views

Is there a way to get time-stamping of the mirror you update the index from?

As far as a I know, apt only records when either you or it i.e. apt did an apt hook to update the apt database. Is there a way for e.g. to know the time-stamp of the mirror or a way to know when a ...
2
votes
1answer
792 views

when did apt or apttitude or apt-get start supporting of last two releases for migration purposes

I was playing with my Debian install today and discovered an interesting thing. If I do for e.g. $ apt-key list /etc/apt/trusted.gpg -------------------- pub rsa4096 2019-04-15 [SC] [expires: 2024-...
1
vote
0answers
41 views

How do I enable listing of zsh commands as you type

on one of my machines while setting up zsh I seem to have accidentally enabled a pretty useful feature. when I search through command history it actually lists all the matching commands as I type. How ...
1
vote
1answer
238 views

Modify bash history from inside subshell in an interactive session

I executed history > before; (history -d $n); history > after where $n is the number corresponding to the last command I typed in the same interactive session before executing this line, The ...
4
votes
0answers
127 views

Why do ext2 inodes only have 12 direct blocks?

I'm currently writing a hobby file-system for fun. I was wondering if anyone knows why or where I could get information on the design philosophy of ext2. Specifically, I was wondering why each inode ...
4
votes
2answers
136 views

When and why did ^ and $ take on their meanings of “beginning of line” and “end of line?”

Many command-line tools (grep, flex, etc.) use the ^ symbol to denote "beginning of line" and the $ symbol to denote "end of line." When did this convention arise? It seems perfectly reasonable to ...
0
votes
1answer
129 views

Using interactive's shell history expansion inside a script

I have the following Bash script set -o histexpand set -o history pwd lc="!!" which, when I run it in an interactive shell, prints /home/user lc="pwd" I'd like to, instead of getting lc=pwd, get ...
1
vote
1answer
27 views

Search history and get temporal context with specified window size

I often find myself searching in my history by doing something like history | grep searchterm This returns a list of all the times that I used searchterm in a command. However, I would often like to ...
1
vote
1answer
177 views

how was the pipe(2) system call working in “traditional” Unix

This is what perldoc -f syscall says: There's a problem with syscall(SYS_pipe()): it returns the file number of the read end of the pipe it creates, but there is no way ...
-1
votes
1answer
61 views

Why did Debian use the typewriter apostrophe (') instead of the closed curve quote (’) [closed]

I have been using Debian for quite a few years. Every now and then, when I write or read something I find it confusing what an author meant by it. I had a look at the wikipedia page, as well as this ...

1
2 3 4 5
8