0% found this document useful (0 votes)
21 views

Unix Commands

The document discusses various Unix commands used to check error logs, run jobs, transfer files between Unix and local systems, create and navigate directories, view and edit files. It also covers foreign keys, indexes and creating tables in SQL.

Uploaded by

surekhakng
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
21 views

Unix Commands

The document discusses various Unix commands used to check error logs, run jobs, transfer files between Unix and local systems, create and navigate directories, view and edit files. It also covers foreign keys, indexes and creating tables in SQL.

Uploaded by

surekhakng
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Unix Commands:

Do you have knowledge on UNIX?

What purpose yuou are using unix commands?

I will be using unix

1.to check the error logs

2.to run the job in backend.tidal is outage as workaround we run job in the backend.

Run_process <jobname>

Putty---login---un: & pwd:

Win_Scp----windows secure copy

Local system unix server

How will you bring a file from unix to yur local system?

Using WInSCP

I will connect unix server and then i will go to the location where the file is available and then drag and
drop.

Files---

Touch---mutiple files at a time

Touch a.txt b.txt c.txt....

Cat: creates only one file at a time

We can create new directory by using mkdir

Mkdir batch2

Cd:change the directory

Cd dirname

ls: to view the files and directories from current working path

ls-f-ls-d

chmod---to changthe file permission

pwd—present working directory


wc-word count-count the characters,words,lines in a file

test

wc-l-it counts the line

wc-l test--10 line

wc-w-It counts the words

wc-cit counts the charecters

grep—Globaly regular expression/patterns is the most useful search command

to find the string pattern in afile

grep ‘string-pattern’ filename

grep ‘ONE’ test--

grep-i ‘one’ test

cp-it will cop the files/dir from one loc to another location

cp <existing filename> <anew file name>

mv-rename-

mv test.txt test1.txt

rm—deleting existing files

foreign key---

this is used to reference the parent table primary key column which allows duplicates foreign key always
attached to the child table.

Create table student(empno number(2) ,name varchar(12),marks number(13),deptno


number(2),primary key(empno),foreignkey(deptno) references dept(deptno));

Create table emp(empno number(2),ename varchar2(12),deptno number(2_)constraint primary


key(empno),constraint foreign key (Deptno)references dept(Deptno)

Indexes:indexes are most useful on larger tables on columns that are likely to appear in clauses as
asimple equality

Create index stu_indx on student(sno);--10,000-insertion,updation,deletion

Tree-

You might also like