shell tag

84 questions


2 answers
90 views
0
How to set relative paths by file, not by path criteria for entering commands?

The title is weird because I don't know it well.The result depends on where the command written in the shell script runs the script.For example:#!/bin/shpwdScripts like this home p parent ch Child te...



1 answers
57 views
0
There are some parts of Linux shell file programming that I don't understand.

It's very basic, so I have no idea what's wrong.test.sh#!/bin/bashecho TEST START !!VAL = `ps -ef | tail -3`echo $VAL Execution resultTEST START !!./test.sh: 5: ./test.sh: VAL: not foundIs there anyth...

2 years ago

1 answers
69 views
0
How do I get a Bash Shell Enter?

I want to end the program when I receive the enter with the read command I looked it up on the internet, and they got an entry with . But I keep getting errors when I try it Can you tell me what the p...

2 years ago
« - 9 -

© 2024 OneMinuteCode. All rights reserved.