Loading, please wait...

A to Z Full Forms and Acronyms

How to execute 'ls' command in Linux Shell Script | Linux Shell Script

Mar 08, 2022 LinuxShellScript, 3198 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
A to Z Full Forms and Acronyms