---
title: "UNIX shell Scripting Useful Commands – Part 1"
description: "The top ten keywords mostly used in writing Shell scripts in UNIX or Linux."
url: https://srinimf.com/2013/12/03/unix-shell-scripting-variables-for-job-interviews-part-1/
date: 2013-12-03
modified: 2026-10-10
author: "Srini"
image: https://i0.wp.com/srinimf.com/wp-content/uploads/2013/12/pexels-photo-963278.jpeg?fit=1880%2C1253&ssl=1
categories: ["UNIX"]
tags: ["UNIX tips and Tricks"]
type: post
lang: en
---

# UNIX shell Scripting Useful Commands – Part 1

Top 10 commands you can use while writing scripts in UNIX.

Related[Informatica: Know These 6 Benefits of Unix Shell Scripts](https://srinimf.com/2012/08/27/unix-shell-scripting-why-dwh-professionals-to-learn/)

Related[9 Must-Read UNIX Blogs to Sharpen Your Interview Skills](https://srinimf.com/2014/05/13/unix-commands-mainframe-informatica/)

1. $? = It tells return code ‘0’ or error of previous run command
2. 2>&1 = 2 means stderror. &1 means output stdout
3. > /dev/null = It will write to null. Means nothing
4. awk = Programming Language to parse chars
5. sed = Programming language to substitute chars
6. $0=  It contains actual command. $1…. $9 represents attributes
7. $# ==> Total number of command line arguments
8. Typeset -u  VARIABLE => to convert into upper case
9. Typeset -l VARIABLE => to covert into lower case
10. crontab -e ==> refresh every minute

In my next post I will give more tips on UNIX scripts

Related[UNIX and Shell Scripting Programming – A to Z PPT](https://srinimf.com/2014/08/11/unix-and-shell-scripting-programming-a-to-z-ppt/)

### Share this:

-
- [Tweet](https://twitter.com/share)
- [![](https://i0.wp.com/assets.pinterest.com/images/pidgets/pinit_fg_en_rect_gray_20.png)](https://www.pinterest.com/pin/create/link/?url=https%3A%2F%2Fsrinimf.com%2F2013%2F12%2F03%2Funix-shell-scripting-variables-for-job-interviews-part-1%2F&media=https%3A%2F%2Fi0.wp.com%2Fsrinimf.com%2Fwp-content%2Fuploads%2F2013%2F12%2Fpexels-photo-963278.jpeg%3Ffit%3D1200%252C800%26ssl%3D1&description=UNIX%20shell%20Scripting%20Useful%20Commands%20-%20Part%201)
-
- [Share on Tumblr](https://www.tumblr.com/share)
- [Share on WhatsApp (Opens in new window) WhatsApp](https://srinimf.com/2013/12/03/unix-shell-scripting-variables-for-job-interviews-part-1/?share=jetpack-whatsapp)
- [More](#)
-

- [Print (Opens in new window) Print](https://srinimf.com/2013/12/03/unix-shell-scripting-variables-for-job-interviews-part-1/?share=print)
- [Share on Reddit (Opens in new window) Reddit](https://srinimf.com/2013/12/03/unix-shell-scripting-variables-for-job-interviews-part-1/?share=reddit)
- [Share on Telegram (Opens in new window) Telegram](https://srinimf.com/2013/12/03/unix-shell-scripting-variables-for-job-interviews-part-1/?share=telegram)
- [Email a link to a friend (Opens in new window) Email](mailto:?subject=%5BShared%20Post%5D%20UNIX%20shell%20Scripting%20Useful%20Commands%20-%20Part%201&body=https%3A%2F%2Fsrinimf.com%2F2013%2F12%2F03%2Funix-shell-scripting-variables-for-job-interviews-part-1%2F&share=email)
-

### Like this:

Like Loading…
