Sunday, April 28, 2024
4
rated 0 times [  4] [ 0]  / answers: 1 / hits: 14966  / 1 Year ago, wed, january 25, 2023, 8:32:26

Lets say I wanted to create a .txt file that had some commands in it.
Then from .txt file the contents are extracted to the terminal.
Is this even possible and does it have to be a .txt file? oh and I am running 12.04


More From » command-line

 Answers
6

it can be done. Just cd to the directory of the file in the terminal and type chmod +x commands.txt, and then ./commands.txt runs commands in the file



No, it need not be .txt, extension doesn't matter


[#38013] Thursday, January 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dicatandyca

Total Points: 486
Total Questions: 108
Total Answers: 121

Location: Greenland
Member since Wed, Jan 18, 2023
1 Year ago
;