Loading, please wait...

A to Z Full Forms and Acronyms

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

Jun 24, 2021 LinuxShellScript, 381 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