Reputation
6,916
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 6 20
Newest
 Scholar
Impact
~922k people reached

Apr
29
comment set swap space to 0 on RHEL for testing
Have you tried swapoff?
Apr
28
answered How to access a URL filtered only for my public IP from outside my network
Apr
28
comment Delimiter in word splitting
Indeed, IFS stands for _I_nput _F_ield _S_eparator, so.
Apr
28
comment How to copy files from one machine to another using ssh
Yes, use -P to specify the TCP port on the remote host. This catches me every time, because ssh uses -p.
Apr
28
comment Why i couldn't kill the NOHUP process?
screen is a solution to so many problems.
Apr
28
comment How can I append a # in front of each line of a block of text?
Slightly easier in vim, use Ctrl+V to highlight the block, then I# [Esc].
Apr
28
revised adding special characters to folder names
added 649 characters in body
Apr
28
comment Why i couldn't kill the NOHUP process?
Pleased to have been of service.
Apr
28
comment Why i couldn't kill the NOHUP process?
Your command, ps aux | grep nohup was searching the process list for any instance of any process (including paramaters) matching nohup. While it was running, it found itself, because grep nohup contains the string nohup. The grep then finished, so when you tried to kill the grep process you found, which had already self-terminated, you were rightly told there was no such process.
Apr
28
revised Why i couldn't kill the NOHUP process?
added 188 characters in body
Apr
28
answered Why i couldn't kill the NOHUP process?
Apr
28
comment How do I check for the existence of a process without a failed exit code being returned?
if ! pgrep Xvfb; then ... should do the trick.
Apr
27
comment adding special characters to folder names
${var:13} evaluates to "the value of the variable var starting at the thirteenth character". So if var were set to qwertyuiopasdfghjkl, ${var:13} would be equivalent to fghjkl.
Apr
27
answered adding special characters to folder names
Apr
25
comment Feedback when entering passwords, without revealing length
Then I just need to count how many times I see asterisks appear.
Apr
25
answered Feedback when entering passwords, without revealing length
Apr
23
revised Is a string an arithmetic expression?
added 13 characters in body
Apr
23
answered Is a string an arithmetic expression?
Apr
20
comment associative array with two strings
If you're asking what I think you're circuitously asking, yes, in bash 4.0 and later, you can use string indices for "associative" arrays; prior versions only have integer indices.
Apr
19
comment Forward stdout to different tty
Try exec 1<&-;exec 1>>/dev/pts/5 and see what happens.