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 |
Write a command to kill the last background job?
can we use cat command as an editor ..???
distinguish between multi-tasking,multi-user,multi- processing and time sharing?
7 Answers Alcatel, Cisco, Infosys, University Exams,
distinguish between paging and swapping?
How do you find out all processes that are currently running in UNIX OS?
How do you copy a directory with many files and folders into another directory?
Describe the usage and functionality of the command rm –r * in unix?
What is the use of tee command?
Is there any method to erase all files in the current directory, along with its all sub-directories, by using only one command?
What command will bring user back to their home directory in UNIX?
How can you see the command line history?
Is command prompt unix?