How to execute 'ls' command in Linux Shell Script | Linux Shell Script
Mar 08, 2022
LinuxShellScript,
3325 Views
How to execute 'ls' command in Linux Shell Script | Linux Shell Script
How to execute 'ls' command in Linux Shell Script | Linux Shell Script
We will create a shell script program to execute the "ls" command and print the result on the command on the console screen.
#!/bin/bash
# Program name: "execute_cmd.sh"
cd /
ls