Skip to content

Latest commit

 

History

History
14 lines (10 loc) · 314 Bytes

running-cmds.md

File metadata and controls

14 lines (10 loc) · 314 Bytes

Running Linux cmd link commands in bash

user=$(whomai)
dir=$(pwd)
date=$(date)

echo "You're logged in as $user in the $dir directory and today is $date"

In the above I ran a few simple Linux commands within my script. All that is needed to do is.

Is wrapping the command within $() like above.