whenever I use "sudo su", i'm getting "bash: export : = not a valid identifier". I'm new to linux. Please excuse for not being more informative [closed] - linux

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 2 years ago.
Improve this question
I'm using UBUNTU 20.04,wayland. However I'm getting root privileges after that two messages.

The root .bashrc file has a line that looks like this:
export PATH = /snap/bin:/usr/local/sbin/...
Get rid of the spaces around the =.
export PATH=/snap/bin:/usr/local/sbin/...

Related

Getting SyntaxError: JSON5: invalid character '\"' at 3:5 (REACT Project) [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
Picture of file with error code
Here is a link to a picture of the file with the error code message above ^^.
I get this error whenever I try to run "npm run dev"
I'm not sure if this picture shows enough detail, so, tell me if there is more detail I should include because I have no clue.
Is there something in this file I should manually edit or are there any commands I should type to fix this issue?
I tried reinstalling nodejs many times and creating a new project. Can someone actually give me a suggestion on what might be causing this issue?
Please add more detail like which rpm version you are using it. It seems some package version mismatching issue.

Error in node_modules/#types/node/ts4.8/util.d.ts:1485:42 - error TS1005: ',' expected [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 7 days ago.
Improve this question
i have this problem any idea please !
package.json :
I had this issue too.
For me , the temporary fix was to do:
npm i -D #types/node#17.0.41
This appears to be the reason, so you can read more about it here.

Temprarly change $PATH only for the script run [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
I hope that you can help me with the following problem: I want to implement a script that requires that $PATH variables has missing . value changes in it.
The point of the script is to find requested files and copy them to parent directory. I can do this using -execdir, but the problem is that . is defined in the $PATH.
Can you please tell me how can I provide a temporary replacement for the $PATH variable that can be valid only for the script execution.
Thanks
The shell allows you to set environment variables of an executable by passing them to the invocation. Like this:
PATH="/foo/bar" program

how can I download a file from a url(not a direct url) in Linux [closed]

Closed. This question needs debugging details. It is not currently accepting answers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Closed 6 years ago.
Improve this question
I am trying to download a file from below url by using wget command.
http://fx.kebhana.com/FER3701D.web?targetMethod=doTxtDownload&regdate=20160602
wget http://fx.kebhana.com/FER3701D.web?targetMethod=doTxtDownload&regdate=20160602 -O test.txt
when I type this url in browser it creates text data file and downloads it.
I need to do exact same thing in Linux server.
I found someone asked the same question.
I tried all the solutions of the comments and answers in here, but couldn't solve the problem.
https://unix.stackexchange.com/questions/145946/downloading-files-using-wget
If there is any solution, please let me know.
Thanks.
You need to put quotation marks around the URL because of the special characters:
wget "http://fx.kebhana.com/FER3701D.web?targetMethod=doTxtDownload&regdate=20160602" -O test.txt

Error in shell script and how to write to a file [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am writing a shell script that is extracting the data from a command:
I have tried running the script in both the vi and vim editor. But everything in vain.
Please help me out. And how write the output of this in a file.
It may be noted that this is just a starting point so the script will produce multiple files so
I cannot write:
Script_name > filename
I think this question is fine now, the input file is good enough after edit, I can fully understand what you ask for now.
With awk, you need learn to use 2-d array, it will simplify the code.
awk 'BEGIN{print "Instance id Name Owner Cost.centre"}
/TAG/{split($0,a,FS);a[4]=tolower(a[4]);$1=$2=$3=$4="";b[a[3],a[4]]=$0;c[a[3]]}
END{for (i in c) printf "%-18s%-26s%-14s%-20s\n",i,b[i,"name"],b[i,"owner"],b[i,"cost.center"]}' file
Instance id Name Owner Cost.centre
i-e1cfc499 Memcached
i-7f4b9300 Test_LB01_Sachin
i-c4260db8 Rishi_Win_SAML Rishi Pandey
i-fb5ca283 CLIQR-DO NOT TOUCH mataa 1234

Resources