Some more linux commands

$cat fileName //show the contents of the file

$grep text < fileName //show the lines that contain the word “test” inside the fileName

$grep -l text  *.txt //show all .txt files  with “text” word on those

$rev fileName //reverse the contents of the file

$VARIABLE=VALUE //set values to a variable

$echo $VARIABLE //see the value of the variable

$ export VERIABLE //set environment vatiable

#!/bin/bash //first line to write a script

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.