Questions tagged [fc]
10 questions
4
votes
0 answers
FreeBSD sh: is it possible to import a list of commands into fc without executing them?
I cannot find any indication that sh supports persistent history. So I am trying to create this functionality manually. At the end of my .shrc history I have added this:
trap -- 'fc -ln -- 1 >> "$HOME/.sh_history"' EXIT
This ensures that every time…
Harold Fischer
- 1,914
- 1
- 16
- 29
3
votes
2 answers
edit-and-execute-command interrupted by SIGTSTP
I've been using bash's edit-and-execute-command function:
edit-and-execute-command (C-x C-e)
Invoke an editor on the current command line, and execute the result as shell commands. Bash attempts to invoke $VISUAL, $EDITOR, and emacs as the editor,…
Nathaniel M. Beaver
- 1,246
- 13
- 28
2
votes
2 answers
Short command or alias to copy last command to clipboard
Often I'd like the command I just typed to put into the clipboard, and I'd like to do it from the command line.
I came up with:
alias cl="fc -ln -1 | sed 's/^\s*//' | xsel -b"
To alias cl to that pipeline which seems to achieve the desired effect,…
BeeOnRope
- 538
- 3
- 13
2
votes
1 answer
Viewing Port Info FC Solaris 11
I have a hba card with two ports (port 0) and (port 1) and I want to know how can obtaining using OS the info to mapping the wwn that I can see using fcinfo hba-port command to a port of the hba card.
For example:
If I have a WWN ending on xxxx890B,…
vicdeveloper
- 369
- 2
- 8
- 16
2
votes
2 answers
Alternative of bash's `history -p` in zsh?
In bash, history -p does history expansion on its argument; What is the alternative in zsh?
HappyFace
- 1,493
- 9
- 21
2
votes
3 answers
How to use vim for editor when running fc?
I have a machine for which when I run fc it opens in the nano editor. How can I switch the editor to vim when I edit a command with fc?
leeand00
- 4,443
- 10
- 51
- 78
1
vote
2 answers
How to check that which storage connected either FC or iscsi
How do i check that, which type of storage are connected with my linux(Redhat) system. I want to find that either ISCSI or FC storage connect ?
Nullpointer
- 553
- 4
- 10
- 24
0
votes
1 answer
Can I configure Multipathig on FC Ports?
I have backup software which is installed on RHEL 7 Server. The connectivity between Data Domain and the Backup Server is as below:
Zonning is configured on switch 1 and switch 2 as below:
Alias For Data Domain HBA card…
Puneet Dixit
- 167
- 1
- 6
0
votes
0 answers
HPE MSA-2050, FC extremely slow read/write
There's HP DL380 Gen10 server (dual Xeon Silver 4110 2.10GHz, 128Gb RAM, qlogic qla2xxx ) running debian 9.8, acting as database sever (percona server-5.6.43-84.3).
Mysql data directory is connected over FC to HPE MSA-2050 (raid 10 of 14 SAS HDD…
Someone
- 193
- 1
- 2
- 15
-1
votes
1 answer
fc-list is empty
Some time ago I deleted a lot of packages from a VPS that seemed to be needed only for visual programs (I got the list from some other question here, I don't remember where exactly).
Now I'm running into trouble when trying to run Chrome Headless, I…
fiatjaf
- 158
- 11