you can make a shell script with those commands, and then chmod +x <scriptname.sh>
, and then just run it by
./scriptname.sh
Its very simple to write a bash script
Mockup sh file:
#!/bin/sh
sudo command1
sudo command2
.
.
.
sudo commandn
More Related Contents:
- How to use ‘cp’ command to exclude a specific directory?
- How can I store a command in a variable in a shell script?
- cronjob does not execute a script that works fine standalone
- How to open a new tab in GNOME Terminal from command line? [closed]
- Using the “alternate screen” in a bash script
- How to limit user commands in Linux [closed]
- Prevent Gnome Terminal From Exiting After Execution [duplicate]
- Syntax error: “(” unexpected — with !(*.sh) in bash script
- Execute command after every command in bash
- Clear a terminal screen for real [closed]
- Error “syntax error near unexpected token ‘(‘” in Bash script when selecting files
- Rename files and directories recursively under ubuntu /bash
- How can I run a Windows executable from WSL (Ubuntu) Bash
- How to check if sed has changed a file
- BASH copy all files except one
- How to check if a program is run in Bash on Ubuntu on Windows and not just plain Ubuntu?
- Run script with rc.local: script works, but not at boot
- How to permanently set $PATH on Linux/Unix [closed]
- How do I use sudo to redirect output to a location I don’t have permission to write to? [closed]
- Read values into a shell variable from a pipe
- Fastest way to find lines of a file from another larger file in Bash
- How to replace spaces in file names using a bash script
- Shell script: Run function from script over ssh
- How can I quickly sum all numbers in a file?
- Bash script process substitution Syntax error: “(” unexpected
- What is the difference between using `sh` and `source`?
- Automating telnet session using bash scripts
- make -j 8 g++: internal compiler error: Killed (program cc1plus)
- Exit code of variable assignment to command substitution in Bash
- Using `date` command to get previous, current and next month