what are the different commands used to create files?

Answer Posted / subbareddy kake

1.touch <file name>
2.cat > filename
3.> file name
4.by using editors like vi
5.echo > file name
6.tee file name
7.vim file name

Is This Answer Correct ?    1 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain command to display different lines that are found when compare two files?

764


Is command prompt unix?

681


What does this command do,"$more readme.txt“?

775


How can we use grep command in unix?

702


What does find command return in unix?

691






How does shebang work?

688


What are reported commands?

659


Write a command to display a file’s contents in various formats?

713


What is the use of awk command in unix?

654


What command is used to switching between users in unix?

656


What is the functionality of a top command?

704


Give the command for finding the current date.

659


Which command should you use to find the remaining disk space in unix server?

832


When i run a programm of orphan process. Instead of getting child's parent (ppid)=1 ..i get 1400 and it varies as per system. How can i findthe right soluion??? My pgm: #include # include int main() { int pid; pid=fork(); if(pid < 0) {exit(-1);} else if(pid==0) { printf("Child Process is Sleeping ..."); sleep(10); printf("Orphan Child's Parent ID : %u ",getppid()); } else { printf("Parent Process Completed ... %u ",getpid()); exit(0); } return 0; } Output:

1850


Explain command to view process running?

699