Skip to content

Latest commit

 

History

History
46 lines (31 loc) · 914 Bytes

File metadata and controls

46 lines (31 loc) · 914 Bytes
  1. Shebang:

The shebang is the first line of a script and specifies the shell that should be used to interpret the script.

#!/bin/bash

Reading Input:

echo "Enter your name:"
read user_name
echo "Hello, $user_name!"

Chmod

user group alluser

image

pipe

ps -ef | grep top 

sends output of first command to second command

#if elif fo r

image image

for i in $(seq 1 100); do echo "i love INDIA"; done

awk

ps -ef | awk -F" " '{print $2}'

4 -read 2- write 1- execute