How do you create a file in UNIX

Answer Posted / bhaskar

using touch comamnd


touch filename

Is This Answer Correct ?    21 Yes 8 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Who wrote grep?

568


What does sed command do in unix?

549


How do you grep recursively?

545


Describe the usage and functionality of the command rm –r * in unix?

809


how to sort the content of the file based on numeric values

1234






Who command in unix?

558


What is the command to find hidden files in the current directory?

570


Write a command that will allow a unix system to shut down in 15 minutes, after which it will perform a reboot.

608


Which command is used to delete all files in the current directory and all its sub-directories?

650


Describe the zip/unzip command using gzip.

594


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:

1745


What is .sh file?

605


What are awk commands?

568


Can you enlist some commonly used network commands?

591


Is command prompt unix?

565