Shuf command in linux [closed] - linux

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I am confused with how shuf command works with streaming input. Does it buffer the data? Or is there some way of doing this in an online fashion.

This tool reads either a file, or from the linux/unix stdin. There is no streaming.
When you do just do shuf on the command line, you will have to press CTRL-D at some point to tell it "input is complete". Only then the tool starts processing the data.

Related

How can I get a list of all open named pipes in linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Is there a easy way to list all open named pipes on linux? O a bash command to show all open named pipes?
An option: you can use the lsof command line tool: https://www.simplehelp.net/2010/04/09/how-to-get-a-list-of-open-files-sockets-and-pipes-in-linux/

How to what program each logged in user is executing in linux? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
What command line would give me a list of programs each logged in user is executing for a Linux server using bash?
You can use the w command for this.
As #ivanivan mentioned, a more complete listing can be accomplished using ps, usually coupled with grep to filter out what you don't want.

How to clear a Unix terminal while using prolog? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I was wondering if there's a way to actually clear a terminal screen while inside gprolog. What I'm looking for is not only to have a clean-character-free screen, I'm also looking for the cursor to be on top again, just like when you type 'clear' or hit ctrl+L.
Try the shell/1 built-in predicate with the clear command as argument:
| ?- shell(clear).
yes

view history of commands typed in other terminals by the same user [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Heading
When I type history, the output seems to tie to the current terminal. How can I view history of commands typed in other terminals by the same user? Thanks.
Below command will shows the total history of commands entered on the terminal,
cat ~/.bash_history

How can i stop someone from spamming my console using the write command in linux [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
How can I block someone from spamming by console using the "write" command in unix.
Run the command mesg n. Preferably, add it to your .bashrc or equivalent so it runs when you start up.
In your console, type:
mesg n
For more information, read the manual pages (man mesg).

Resources