Linux Essay Samples and Topic Ideas

Linux Script 1 #!/bin/sh#Display the date getDate(){ date return } info=$(uname -a) date=$(getDate) user=$(id) echo The Current Date is $date echo Username and Id: $user echo System Information: $info echo Our Current Working Directory is $PWD Output results are as shown below centertop Linux Script 2 #!/bin/bash getDate(){ date return } theDate=$(getDate) info=$(uname -a) user=$(id) cd /tmp #search for 'Mary' in /etc/passwd name='Mary' search=$(grep $name /etc/passwd) if then echo $name is a user in the system else echo $name is not a user in the system fi #display date echo The Date is $theDate #display system information echo System...

  • Words: 550
  • Pages: 2
Read more

Couldn't find the right Linux essay sample?

Order now with discount!