help me with basics


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers help me with basics
# 1  
Old 03-15-2012
help me with basics

hello everyone

i have to start with unix as it is a part of my training programme and i have to do a self study, i dont know where to start from. i need some basic questions to be answerd like why we use unix ? what is a terminal? what is an editor? why we write commands inside terminal?
these may be dumb questions but i need help.please help out
# 2  
Old 03-15-2012
Welcome to the forum.

You can start by searching for your answers in the forum (or even google what you want).

Here are few links to start with:
1. Frequently Asked Questions
2. What Books Should I Read?
3. The Terminal in UNIX (external link)

Last edited by Scott; 03-15-2012 at 07:09 AM.. Reason: Updated link titles
# 3  
Old 03-15-2012
:)

Smiliethanks the links helped.

---------- Post updated at 03:56 PM ---------- Previous update was at 03:37 PM ----------

Smilieplease tell whether writing commands in unix terminal is scripting ? if not how do we script? are shell scripting and unix scripting differnt?
# 4  
Old 03-15-2012
shell script = combination of commands which is used to do particular task.

so, basically you need to read more unix commands and execute the commands in terminal and understand it

after that, you can read about the shells, conditions, loops,..etc
# 5  
Old 03-15-2012
If you put few commands in a logical sequence in a file and give it execute permissions, then this file becomes a script.

For e.g., you can write a script to forcefully delete all the log files in a directory and notify the user if removal was a success.

Code:
#! /bin/bash
rm -f /my/dir/*.log
if [ $? -eq 0 ]
then
    echo "All log files removed"
else
    echo "Looks like something happened"
fi

Shell script is a script written for a shell. And the shell could be any, depending on the OS you're working on.

Unix script could mean a script written specifically for any of the shells of Unix.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

UNIX basics

Hi, I am new to Unix. can you explain in brief with examples what is variable, what is argument and what is parameter? i searched a lot on other forums but not able to find a appropriate answer. thanks in advance!! (3 Replies)
Discussion started by: 21laps
3 Replies

2. UNIX for Dummies Questions & Answers

UNIX Basics

Hello, 1) I am trying to get involved in UNIX for educational purposes so I have installed the latest Ubuntu edition 12.04. Do you know another package that I could use it instead for educational purposes? 2)What is the difference between "~$" and "/$" (it comes with cd / and cd ~) .The... (1 Reply)
Discussion started by: Iwn
1 Replies

3. Shell Programming and Scripting

ls command basics???

how do i use the ls command with a single argument to list all files whose names end with the letter 'r'? (7 Replies)
Discussion started by: lilbo4231
7 Replies

4. AIX

AIX Basics

Hello , Everyone , I want to know the Aix Basics and how it works ,hardware related problems and solution etc. (1 Reply)
Discussion started by: narendram
1 Replies

5. UNIX for Dummies Questions & Answers

awk basics

Hi, Please tell me where can I get started with awk..like the basics and the whole awk stuff. Regards, Deepti (2 Replies)
Discussion started by: gaur.deepti
2 Replies

6. AIX

DB2 basics

Dear friends I am going to study DB2 and i dont have any experience with any DB's.. Please provide me with some links or pdf's for DB2 starters. any advice will be very usefull (2 Replies)
Discussion started by: Vit0_Corleone
2 Replies

7. Shell Programming and Scripting

Scripts and basics

Hi, I have a script which I need to modify the date "01/10/2008" and "31/10/2008" every month before running the report. Can I have some script to take the date automatically from the cal option. Hope it makes sense. Thanks in advance. (1 Reply)
Discussion started by: Jayanthsec
1 Replies
Login or Register to Ask a Question