In the shell is not strong, tell me how you can perform such an action using a script:
Save in the form of the ascii file F1.var the value of the internal variables of the shell and the number of processes in the system.
In the shell is not strong, tell me how you can perform such an action using a script:
Save in the form of the ascii file F1.var the value of the internal variables of the shell and the number of processes in the system.
Save environment variables:
printenv > F1.var Save processes to the same file.
ps -aux >> F1.var I doubt if you need a script
Strictly speaking, the printenv command provides a list of environment variables, not internal shell variables, but I don’t really understand what benefits in this context can be obtained from $REPLY , $1 , $2 , $# variables and many others.
ps -axo pid , if you strictly follow the conditions of the problem :-) - PinkTuxSource: https://ru.stackoverflow.com/questions/584154/
All Articles