can we use cat command as an editor ..???

Answers were Sorted based on User's Feedback



can we use cat command as an editor ..???..

Answer / san

No. cat command is only ti list/View contains of File

Is This Answer Correct ?    51 Yes 12 No

can we use cat command as an editor ..???..

Answer / rupali

The cat utility concatenates and display files. It also
can be used as a primitive editor for creation one liners
or adding a line to the config file. There is also a
version of cat called zcat which performs operation similar
to uncompress -c or for GNU version gunzip -c on each
input file

Is This Answer Correct ?    25 Yes 1 No

can we use cat command as an editor ..???..

Answer / mayank

yes
id file doesn't exists
cat >file
my name is sopderman
r u serious
ctrl+d

cat >>file
no, i am not
ctrl+d

cat >file
overwriting file
ctrl+d

cat -n file> file2 --add line numbers

Is This Answer Correct ?    18 Yes 1 No

can we use cat command as an editor ..???..

Answer / shakti

no we can not use cat as editor because it do not give
the fasilty of editing,modification in the content of the
file

Is This Answer Correct ?    10 Yes 7 No

can we use cat command as an editor ..???..

Answer / venkatesh

cat command is not an editor because it is used to create
files and display file components and it is a internal
command in unix...

cat hi this is venkat@cec

it displays the text as entered above..

hi this is venkat@cec

cat>venkat

and

cat>>venkat

by using that format we used to use in unix.......

Is This Answer Correct ?    4 Yes 1 No

can we use cat command as an editor ..???..

Answer / riyaz

Cat is not an editor.. its a command which has readonly
permision.

Is This Answer Correct ?    4 Yes 2 No

can we use cat command as an editor ..???..

Answer / kesava swamy pindi

Yes, we can use 'cat' command as an editor.

Ex: cat > names.txt
hai
hello
ctrl+c
Here, iam creating a file called 'names.txt'. If this file
already exists, the old contents of the file will be
overwritten; else new empty file is created and data is
placed in this file.

Also, we can append new content to existing file using cat
command.

Ex: cat >> names.txt
bye
crtl+c

Is This Answer Correct ?    3 Yes 1 No

can we use cat command as an editor ..???..

Answer / niranjan

cat is unix command not an editor.
Editor is one which provides various mode like input mode,command mode, and last line mode as vi editor..
cat displays the content of file if file exist else it creates
the new file and takes input from standard input(i.e, keyboard)

Is This Answer Correct ?    1 Yes 0 No

can we use cat command as an editor ..???..

Answer / giridhar

Yes,We can use cat as an editor to see code

Is This Answer Correct ?    1 Yes 4 No

can we use cat command as an editor ..???..

Answer / no

vi command

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More Unix Commands Interview Questions

What command will change your prompt to myprompt?

0 Answers  


How do you move a process which is running background to foreground?

9 Answers  


How to get the operating system's information in unix?

6 Answers   IBM, TCS,


Give the command for finding the current date.

0 Answers  


What is the use of tee command?

0 Answers  






what do you understand by 'unix is a portable os'?

3 Answers   Infosys,


Which is the command used to find out currently executing Process in UNIX?

6 Answers   Amazon,


what are the different operating systems available?

3 Answers  


what is the meaning of this command rm -rf / what will it do ?

5 Answers   Altair,


Sorry to all Technical person for mistake of Question. Now i am post currect question Why copied file permission is changed in destination. When i give all permission i.e 777 to file and copy that to other location in destination the permission is 755. But if give permission 555 in destination that file permission is 555 and if give permission 444 to file after copy in destination the file permission is 444. These all are happening in normal user. How the umask value is calculate here really i am not understand. Please write the proper answer. Thanks in Advance

3 Answers   TCS,


How does the user view the contents of a text file in UNIX?

9 Answers   IBM,


What do you mean by zambie process?

6 Answers  


Categories