shell script variable for OS?
If I wanted to append a my hostname to a copied/tarred file, I'd use `hostname`
Is there an equivelant for printing the OS? |
Code:
uname --help |
Greetings. Thank you for your response. How would I append that to a tar command, such as
tar -zcvf ~/path/to/file-`hostname`-`date +%Y%m%d`.tar.gz /etc |
Exactly the same way as you attach the date command except use uname + whaterver options you want
|
Got it. Thanks.
|
Don't forget to post your solution and mark the thread 'SOLVED' for others benifits
|
All times are GMT -5. The time now is 06:09 PM. |