cat command: can be used to
1. View contents of file
2. Create files
3. Concatenate files
4. Redirect output.
Examples of Cat :
Display contects of file:-
cat /etc/passwd
View contents of a file:-
cat file1 file2
Create a file :-
cat >testfile
Redirecting output of a file
cat testfile1> testfile2
cat filea fileb > filec
A blog on SQL , PLSQL , Linux concepts. Interview Questions from different companies. For suggestions and contributions, reach me at sivak36@gmail.com
Thursday, October 24, 2019
Friday, October 18, 2019
rmdir - command usage
rmdir : This command removes empty directories
Example:
1. To remove single directory
Example:
1. To remove single directory
rmdir dir1
2. To remove multiple directories
rmdir dir1 dir2 dir3
3. To direcory , sub direcory if they are empty
rmdir -p dir1/subdir1
Thursday, October 17, 2019
mkdir command usage
mkdir : Allows to create single or multiple directories
mkdir one
create three directories in the present directory
mkdir one two three
create directories as per the hierarchy defined
mkdir -p one/four/six
touch command
Command:
touch - creates an empty file
Example:
touch file1.txt
Here create_files.ksh is the file name.
cd - command usage
cd - change directory
1. Go to one directory backwards
cd ..
2. Go to Home directory
cd ~
3. Go to last directory
cd -
4. Go to a particular directory
cd /etc
1. Go to one directory backwards
cd ..
2. Go to Home directory
cd ~
3. Go to last directory
cd -
4. Go to a particular directory
cd /etc
Monday, October 14, 2019
List out 10 commands which you now in unix/linux ?
cd /directoryname - change directory
ls -ltr - list files
pwd - present working directory
touch - create an empty file
mkdir - create a new directory
rmdir - remove an empty directory
rm -rf - remove file forecefully and recursevily
chmod - change file/ directory persmissions
chown - change owner of the file or directory
ls -ltr - list files
pwd - present working directory
touch - create an empty file
mkdir - create a new directory
rmdir - remove an empty directory
rm -rf - remove file forecefully and recursevily
chmod - change file/ directory persmissions
chown - change owner of the file or directory
ls
1. How do you check the list of files and directories timestamp wise ?
ls -ltr
2. How to check hidden files in a directory ?
ls -ltra
3. How to see the long list of files ?
ll
ls -ltr
2. How to check hidden files in a directory ?
ls -ltra
3. How to see the long list of files ?
ll
Friday, October 11, 2019
About Me & Contact
About Me: Visit My LinkedIn Profile
Hello, I am Sambasiva Rao Kesana , Welcome to my blog plsqblog.blogspot.com !
Hello, I am Sambasiva Rao Kesana , Welcome to my blog plsqblog.blogspot.com !
I live in silicon valley of India, Bangalore.
I am a Software Engineer, Blogger, Books Reader , Story Teller, Aspiring Motivational Speaker, Aspiring Product Manager.
I work in an MNC as a Database Developer. I have been working on Oracle SQL, PLSQL, Unix/Linux, Shell Scripting technologies over the past 9 years. I am going to share in this blog all my learning's from oracle documentation and training materials, experiences while working.
For any suggestions , improvement , request for blog post on a particular topic, you can reach me on sivak36@gmail.com
Happy Reading !
I am a Software Engineer, Blogger, Books Reader , Story Teller, Aspiring Motivational Speaker, Aspiring Product Manager.
I work in an MNC as a Database Developer. I have been working on Oracle SQL, PLSQL, Unix/Linux, Shell Scripting technologies over the past 9 years. I am going to share in this blog all my learning's from oracle documentation and training materials, experiences while working.
For any suggestions , improvement , request for blog post on a particular topic, you can reach me on sivak36@gmail.com
Happy Reading !
Subscribe to:
Posts (Atom)
Featured Post
Will the data from Oracle Database be lost after formatting the system in which it is installed?
So Someone asked me a question, Will the data from Oracle Database be lost after formatting the system in which it is installed? Since the ...
Popular Posts
-
Experience Level - 3- 5 Years SQL Questions: Brief about your experience, skills and projects you worked on. 1.Differenfe betw...
-
Data Dictionary tables/Views contain information about the database and its objects. These are automatically created and maintained by oracl...
-
E 1st round Queries on joins, group by , not in, rank , dense rank, decode, case. (for half an hour to write queries ,given different ta...
-
Select * from a where hiredate+60 < sysdate; (here hiredate is non-unique index, so query scanning index range or full table scanning. ...
-
Generate Sequence of Numbers from 1 to N using SQL Query SELECT LEVEL AS ID FROM DUAL CONNECT BY LEVEL <= 20; ...
-
Stages of Processing SQL Statement: SQL statements pass through several stages during their processing: Parsing Binding Executing O...
-
Introduction Both LAG and LEAD functions have the same usage, as shown below. LAG (value_expression [,offset] [,default]) OVER ([quer...
-
About Temporary Tables : Temporary tables are database tables that hold session specific data Each session can only see and modify its o...
-
Parameter Modes in PLSQL procedures and functions are IN , OUT, IN OUT. The differences are as follows.