what will this do $cat > file.c ?(file.c is a file in
current directory)
Answer Posted / madhavareddy
cat is used to view the content of the file .
if we have file name like file.c having data
214
215
216.
if we want to see the data give the command cat file.c.
if we want to over write the data in file.c give command
like
cat > file.c
219 (give ctl+D)
now if we want to see the data give
cat file.c
219
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How many unix commands are there?
Which command is used to delete all files in the current directory and all its sub-directories?
Is ‘du’ a command? If so, what is its use?
What are the unix commands?
What does this command do? Cat food 1 > kitty
What does the command ' $who | sort –logfile > newfile' do?
Explain command to view process running?
What is the behavioural difference between cmp and diff commands?
Which command can you use to find the currently running process in unix server?
What command is used to switching between users in unix?
Explain ‘library functions’ with respect to unix commands?
What is the command to view process running?
How do you grep a case insensitive?
Which command is used to copy files?
How do I use nslookup?