How to identify whether a file is normal file or directory?
Answers were Sorted based on User's Feedback
Answer / subbareddy kake
By using file command or
First list the all files by using ls -lrt.you will
following type format.
drwxr--r--
-rwxr--r--
so first one directory second one file only
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / srinath.p
$ls -l filename/directoryname
if the first digit is - then it is file,if it is d then it
is directory
| Is This Answer Correct ? | 1 Yes | 1 No |
What is a shell in Unix? Name some common Unix shells.
Explain how to use grep command to list find the records of a file containing 10 different strings?
Which unix command lists files/folders in alphabetical order?
Which command will print your home directory on screen?
Which mode is used for allowing file write,read and append mode?
Give a regular expression that finds two things, try to come up with regular expressions that find each individually using "egrep" command?
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<stdlib.h> # include <stdio.h> 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:
what is the difference between npar and vpar in HP-UX?
What is the functions of zambie process?
What is the command to find maximum memory taking process on the server?
What does sed command do in unix?
What is command substitution?