Linked Questions

315
votes
4answers
40k views

Why not use “which”? What to use then?

When looking for the path to an executable or checking what would happen if you enter a command name in a Unix shell, there's a plethora of different utilities (which, type, command, whence, where, ...
52
votes
5answers
10k views

What are the fundamental differences between the mainstream *NIX shells? [closed]

What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other? I understand that some of it probably comes down to user ...
31
votes
5answers
68k views

Why doesn't my ~/.bash_profile work?

I'm using Linux Mint. My login shell (cat /etc/passwd | grep myUserName) is bash. After I start my graphical desktop environment and run a terminal emulator from it, I can see that .bash_profile is ...
19
votes
4answers
5k views

Search for a previous command with the same prefix when I press Up at a shell prompt

Coming from a FreeBSD world I wish to make the Linux terminal behave like FreeBSD one, especially the 9.1 version, basically when you type cd in the terminal and push the "up" arrow you can browse all ...
9
votes
3answers
4k views

Where are zsh and mksh incompatible with bash?

To what extent can other POSIX-compatible shells function as reasonable replacements for bash? They don't need to be true "drop-in" replacements, but close enough to work with most scripts and support ...
4
votes
1answer
7k views

How to Install bash on FreeBSD

I really find that using bash helps a lot, when you need to retrieve strings of text that you used previously. But how can I install it on FreeBSD? I have tried typing bash into the terminal, but ...
0
votes
1answer
2k views

zsh: Is it worth the switch from bash? Is it the time? [closed]

I have been a bash user for years now. However, I find that zsh is increasingly gaining momentum. I came up with the following questions: Is zsh really becoming that popular? Will it compete with ...
3
votes
1answer
1k views

Is there any advantage on using ksh over zsh? [closed]

Or are there any advantages of using zsh over ksh ? Would any specific commands not execute successfully across the shells or are the major differences not command related, but something else?
4
votes
1answer
710 views

Which is the real PATH variable

On my office computer it seems like I've have two PATH variables. $path : This is delimited by " " (Space) $PATH : This is delimited by ":" (Colon) Though when I update one, the other one ...
4
votes
1answer
2k views

History of commands and directories we were in

I was wondering: If I type history I can see the previous commands I typed and see what happened and perhaps keep commands as reference. But I don't know in which directory I was when I typed the ...
7
votes
1answer
153 views

Time all executions in bash [duplicate]

Is there a way to run all commands in bash as if they were invoked with time in front? I want that I could type $ some_command and this will actually invoke $ time some_command.
1
vote
1answer
160 views

migrating zsh_history to .bash_history

I migrated from mac to linux I backed up my zsh_history.txt How can i merge/append it to my .bash_history file? I see the format is different: git pull #1530441990 git push #1530447814 locate "*ls*...