Thursday, October 24, 2019

cat command in Linux

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

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