Crypteya
  • Member for 3 years, 2 months
  • Last seen more than 1 year ago
  • Australia
3 answers
7 votes
791 views
How to search for a string from all the man pages
4 votes

When you run the command man bash you are opening the documentation in the system's default pager (usually less). To skip to lines matching a particular pattern, you can type /<pattern>. For ...

View answer
1 answers
4 votes
5k views
Auto 777 permissions needs to set under folder when files are receiving
3 votes

It sounds like you want files added to /user/application/feed to automatically receive the permissions 777. Firstly, make the permissions of the folder 777 with chmod 777 /user/application/feed ...

View answer
2 answers
3 votes
1k views
Grep does not read the entire file
3 votes

grep -a could work: from man grep: -a, --text equivalent to --binary-files=text e.g. grep -a -n "demodulator_process" 2018_12_22_13_04_adfags-modem.log Alternatively you could ...

View answer
5 answers
2 votes
6k views
Sed or awk - Insert a new line after Matching pattern
Accepted answer
2 votes

Using perl: perl -pe 's#(?<=.)(?=http://)#\n#g' url_file Explanation This uses a positive lookahead to find substrings that begin with http:// and place a newline (\n) before them. It also uses ...

View answer
2 answers
0 votes
40k views
bash: cd: <path> : No such file or directory
2 votes

You're looking for: cd Desktop or cd /root/Desktop Not cd /Desktop as you have it. Explanation The issue that you're having is that you are trying to go to an absolute path rather than a ...

View answer
4 answers
2 votes
9k views
How Append data to same line of text file
Accepted answer
2 votes

The date command automatically adds the newline at the end of the command. To remove this newline you could do: date | tr -d '\n' &gt;&gt; file.txt &amp;&amp; echo -n "new data" &gt;&gt; file.txt ...

View answer
3 answers
1 votes
814 views
Does a process that have the root user always have all of the capabilities available in Linux?
1 votes

There are a few other things you can do. root_squash NFS shares can be made available with the root_squash flag. In this way, a network share can be mounted but a root user on the client is not ...

View answer
1 answers
1 votes
765 views
CentOS rpm package not available when using yum
1 votes

It looks like you just want to be able to find out which repository contains the required dependencies. Try running yum list &lt;packagename&gt; This should give the name of the repository that ...

View answer
2 answers
1 votes
187 views
Filter different identical characters in multiple words
1 votes

I created a words file with the example text. -bash-4.2$ cat words aaadiigjlf abcdefghij aswdofflle bbbbbbbbbb bisofmlwpa fsbdfopkld gikfkwpspa hogkellgis This script iterates over the wordlist ...

View answer
1 answers
2 votes
925 views
Give a user permissions to start, stop or restart shiny-server
Accepted answer
1 votes

You probably don't need the filepath for shiny-server. You should be able to give the user the required permissions by adding the following line to your /etc/sudoers file: username ALL=(root) ...

View answer
2 answers
0 votes
404 views
How can I make a bash counter script work when executing it from another script?
Accepted answer
1 votes

it looks like your shell is trying to operate on the variable number++ rather than applying an arithmetic operation to the variable number. This is likely because the ++ syntax is not supported in ...

View answer
6 answers
3 votes
2k views
setting firewall-cmd --permanent is not sticking after reboot
1 votes

I've found a blog post that seems related. Perhaps try to restart the firewall: systemctl restart firewalld.service This should be done after adding your rule and before rebooting.

View answer
2 answers
0 votes
702 views
CLI run multiple commands and close terminal
0 votes

To startup a program in the background, use: &lt;your command&gt; &amp; What I'd recommend is simply running what you'd like as two separate commands. Try: user@hostname$ A &amp; user@hostname$ B &...

View answer
2 answers
0 votes
180 views
Bash Shell takes variable amount of time to load
0 votes

You could put the time command before each command in your .bashrc To direct the output of the time command (and not the command output itself) to a log file, reference this question You'll probably ...

View answer
1 answers
-2 votes
4k views
Display Student Record in Unix
0 votes

$ awk -F'|' '/Sangamithra/ {print $3 "|" $2 "|" $1}' input.txt Sangamithra|First|Teju (Please note that your second line in the desired output doesn't appear anywhere in the input file) Explanation ...

View answer
1 answers
-1 votes
22 views
Script to get the storage value of AMQ
0 votes

Posting answer so that question can be marked closed. Credit to DopeGhoti. In order to suppress the full wget session output, the command can be run with the -q or --quiet flag. From the documentation:...

View answer
1 answers
2 votes
85 views
Keep sourced file after script execution
0 votes

I'd recommend having a look at this question. The selected answer is very thorough. To allow the variable to persist, you'll need to use the export function as your current deceleration is limited to ...

View answer
3 answers
3 votes
738 views
Grep between patterns on separate lines or single line
0 votes

Eric Renouf's response does most of the work. And steeldriver's comment cuts out the extra text within a given line by making it non-greedy. So it seems like: grep -oP 'This.*?day' theabovetext does ...

View answer
1 answers
1 votes
171 views
Drilling down in graphs to see individual processes
0 votes

The Command Line Interface (CLI) tool that does what you need and comes with most Linux distros is called Top, you can find a full breakdown of the tool here: https://www.booleanworld.com/guide-linux-...

View answer
2 answers
-1 votes
479 views
How do I Access BIOS with no OS?
Accepted answer
0 votes

Two options: Reinstall Windows, this should overwrite anything that you've broken and at least make the device usable (use the creating Installation media heading): https://www.microsoft.com/en-us/...

View answer