Tag Info

New answers tagged

3

You can get it by typing capital V instead of small v: $ pgrep -V pgrep from procps-ng 3.3.3 $ pkill -V pkill from procps-ng 3.3.4


2

To get some version information, find pgrep in your PATH and run the command what. I get: % what /usr/bin/pgrep /usr/bin/pgrep PROGRAM:pkill PROJECT:adv_cmds-149 Note that the program name is pkill. pkill and pgrep are hard links to the same binary on my system (OS X). Explanation (from the manual): NAME what -- show what versions of ...


2

There is something kind of what you describe: there is a feature to limit the amount of RAM used by a process (RAM, as opposed to virtual memory). The RLIMIT_RSS limit sets an upper bound a program's resident set size, i.e. the part of the memory of that process which is resident in memory (as opposed to swapped out). However, it is not implemented on Linux. ...


4

There is no such tool because it does not make any sense from a single-program point of view. One can consider CPU/HDD/RAM/swap as resources. These resources can be shared in different ways by the operating system among processes, users, contexts, etc. In some specific situations, it makes sense to tell the operating system to enforce hard limits: Don't ...


2

As long as both drives are full, or almost full, I doubt there is a pretty solution. It should be possible to loop over dd commands though. Something like #This code is completely untested, #do NOT just copy paste and use it without proper testing while [[ $((i*chunkSize)) -lt fileSize ]]; do dd skip=$i seek=$i bs=$chunkSize count=1 if=fileA ...


1

Easy way to repeat a job from crontab with an interval less than one minute (20 seconds example) : crontab: * * * * * script.sh script.sh: #!/bin/bash >>type your commands here. sleep 20 >>retype your commands here. sleep 20 >>retype your commands here.


2

I think the Wikipedia topic titled: "Utility Software" nails it: Utility software usually focuses on how the computer infrastructure (including the computer hardware, operating system, application software and data storage) operates. Due to this focus, utilities are often rather technical and targeted at people with an advanced level of computer ...


2

GNUly: s1='token1, token2, token3, token4, token5, token6, token8, token9, token10' s2='token2, token7, token4, token3, token5, token6, token8, token10, token9' comm <(grep -oE '\w+' <<< "$s1" | sort) <(grep -oE '\w+' <<< "$s2" | sort) Gives: token1 token10 token2 token3 ...


1

Pinching the basic idea from Ramesh With GNU awk in bash awk -v RS='[[:space:]]*,[[:space:]]*' '{x[$0]++}; END{for (y in x) if (x[y] == 1) print y}' <(printf "%s" 'token1, token2, token3, token4, token5, token6, token8, token9, token10') <(printf "%s" 'token2, token7, token4, token3, token5, token6, token8, token10, token9') token1 token7


1

You can do something like below. cat input1 input2 >> output arr=$(cat output | tr "," "\n") echo "${arr[@]}" | tr ' ' '\n' | sort -u | tr '\n' ' ' Explanation I am merging the 2 files together into another file and splitting the tokens with comma as a delimiter. After that I am printing only the values that are unique (meaning only the values ...


2

Wikipedia contrasts application software with system software. The latter: Provides a platform for application software by providing access to hardware, etc. Performs system specific tasks -- for example, most common command line utilities. However, many command line programs are really applications (e.g., wget, make, ssh). Application software could ...


3

Strictly speaking, Unix utilities are only a well defined set of commands usable by portable shell scripts and specified by POSIX. The term is also sometimes loosely used to include non standard CLI only commands still common in Unix and Linux systems, like say less, emacs, perl, zipand a gazillion of others. Applications are almost anything running in ...


2

Utilities in Unix are meant to function well in command pipelines or scripts. They are not meant to be interacted with to a high degree while performing their tasks. Applications typically provide a notion of a workspace or project where you can work on a task or file (or multiple such things) interactively, and maybe even save/load that entire ...



Top 50 recent answers are included