![]() While installing, you will also want to make sure the first user is an administrator. And this means that while installing CentOS, you'll want to choose a server with GUI on the software selection screen. If you did not, you can use a standard CentOS 7 server with GUI installation. If you are learning Shell scripting probably as a part of your course curriculum, you need to use Linux commands to practice the commands and scripting. If you took my Previous course titled RHCE Cert Prep: Networking and SSH, which is the foundation course for this RHCE series, you can keep on using that CentOS 7 virtual machine if you wish. You will also want to have 10 to 15 gigabytes of free hard drive space for the Linux virtual machine. You may want to have high-speed internet for doing Linux OS software updates. It will execute the script, and depending on the file, you should see an output. ![]() Type Bash script-filename.sh and hit the enter key. Open Command Prompt and navigate to the folder where the script file is available. You can run VirtualBox on most any host operating system, including Windows, Mac OS, or Linux. How do I run a Unix shell script in Windows Execute Shell Script Files. You don't need to install VirtualBox to run a VM for this course, but it's nice to have a clean installation for writing scripts and it's also nice to have snapshots provided by VirtualBox. User variables can be any text string of up to 20 letters, digits, or an underscore character. Setting variables allows you to temporarily store data and use it throughout the script, making the shell script more like a real computer program. ![]() In this course, we will be using CentOS 7 Linux running in a virtual machine, in VirtualBox. Virtual box is fine, but the best way is to immerse yourself thoroughly by installing a distro as a boot option (I use Linux Mint XFCE). A shell script allows us to set and use our own variables within the script.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |