GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Operating System  >  Unix Commands
Go To First  |  Previous Question  |  Next Question 
 Unix Commands  |  Question 49 of 73    Print  
When you issue the command ls -l, what does the first character of the resulting display represent?

  
Total Answers and Comments: 2 Last Update: May 07, 2007     Asked by: lisa 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 04, 2007 12:42:47   #1  
pranab kumar ghosh        

RE: When you issue the command ls -l, what does the fi...
it displays the tolal no of files in the directory
example:
total 80

 
Is this answer useful? Yes | No
May 07, 2007 01:52:04   #2  
goyal_tarun        

RE: When you issue the command ls -l, what does the fi...

Whenever ls -l is issued, the first line which appears provided the number of
total files and subdirectories in the particular directory.

From the second line onwards, the first character provides the information if
the particular object is a file (-) or a directory (d).


e.g.,

drwxr-xr-x 2 xyz ppt 96 May 7 01:09 tar1


The first character 'd' depicts that the object 'tar1' is a directory.


Similarly,

-rw-r--r-- 1 root other 323 Mar 23 2004 audit


The first character '-' here depicts that the object audit is a file.


I hope this would clear your doubt.


Cheers.


 
Is this answer useful? Yes | No

 Related Questions

A pipe is two or more commands separated by pipe char '|'. That tells the shell to arrange for the output of the preceding command to be passed as input to the following command. Example : ls 
Latest Answer : The Unix commands alone are powerful, but when two or more commands get combine together, we can accomplish complex task with ease.In unix we can combine the two or more commands together to perform multiple action simulatenously with the help of Pipe ...

With the help of kill command we can terminate the process.Syntax: kill pidKill 0 - kills all processes in your system except the login shell. 
Latest Answer : kill -0 : All processes in the current process group are signaled. Kill -0 commnd is use to sends signal to all process and group of process. ...

Use ‘su’ command. The system asks for password and when valid entry is made the user gains super user (admin) privileges. 
Latest Answer : "su" is the command to switch to a super user status (commonly known as root user) from a user shell.This command does not load the shell settings for a typical super user that login from a login screen. Therefore, environment variables/settings ...

Yes, it stands for ‘disk usage’. With the help of this command you can find the disk capacity and free space of the disk. 
Latest Answer : Thats right.. du gives you "disk used" and not free disk space. some of the options for du are : du -k   : returns the disk usage in KBsdu -k : gives the disk usage by direcotry and all its sub-directories in KBs ...

ls stands for list; so it displays the list of the files that starts with 'chapter' with suffix '1' to '5', chapter1, chapter2, and so on. 
Latest Answer : ls -x displays the list of contents in linewise instead of column wise ...

Yes, using the ‘mesg’ command. 
Latest Answer : messages can be restricted by you with the help of 'mesg n', this will restrict the incoming of messages to your terminal, for again allowing messages for your terminal you can use 'mesg y'. ...

$ echo *It is similar to 'ls' command and displays all the files in the currentdirectory. 
Latest Answer : Ya u r correct, $echo *  will give u the files in the current directory similar to ls command. ...

$od -cbd file_namec - character, b - binary (octal), d-decimal, od=Octal Dump. 
Latest Answer : to change the output in binery format the command is :%!xxd -b ...

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

Kill $! 
Latest Answer : To kill the last background job, the following command is used:$ kill $!The system variable $! stores the PID of the last background job.The other method is first find the PID using the ps command, then use kill command to do the job. ...


 Sponsored Links

 
Related Articles

What is the use of truncate command?

Truncate command will delete all records and the most important thing to make note of truncate command is since truncate command cannot be rolled back one must make sure to take proper backup of table data before performing the truncate command. Truncate command is thus used to remove all rows from
 

How to call C header that is not provided generally by system in C++?

Headers can be called by using extern C Syntax of extern C is: extern "C" <function declaration> for example to call C functions from C++ we can write extern "C" { <function declaration> <function declaration> ...
 

How to define command line arguments

The main functions can have arguments passed which are called as command line arguments. There are two command line arguments: Argument count denoted by argc and Argument vector denoted by argv The argc is an integer variable which denotes the number of parameters passed and argv is pointer to a
 

SQL Table Commands

SQL Table Commands Overview As mentioned previously in this series of SQL articles, databases are primarily composed of tables. The “columns and rows” structure of the table allows data to be efficiently inserted, manipulated, updated, and deleted from the database. The three mos
 

System Implementation

In the previous articles relating to SDLC Stages we discussed about Project Planning and Feasibility Study moved on to System Analysis and Requirements which lead to Systems Design. Systems Design will naturally lead to another stage where it becomes closer to the actual deployment of the p
 

System Analysis and Requirements

In the previous chapter, we’ve discussed about project planning and feasibility study. That stage was important because it tries to establish a problem in our highly technological world. As our understanding on what we can do in computers evolve and so are the things that we need to make t
 

The Interview Snafu

How to turn someone else’s mistake to your advantage Your dream job is about to become reality. A recruiter gave you the heads up about the perfect position at Humungous Conglomerate, Inc. You went through five interviews as well as a battery of psychological tests mandated by their HR de
 

Winning a Job Interview with a Winning Resume

Does your resume unlock your potential, take your skills to the highest level and win you the interview and the job you want now? The job market today is highly competitive and even if you think you have what it takes to get an interview you won’t get over the line without a polished, prof
 

Operating Systems and IT Certification

With the burst of information technology that is becoming a part of the dominant culture throughout the world, are programs that are designed to help those in this area to grow in knowledge.  By understanding the different technologies that are available, one is able to use them and impleme
 

Unix Client Server Technology

Unix Client Server Technology Understanding the Role of Unix When discussing client server technology it is important to understand UNIX one of the first primary building blocks for network possibilities that continues its influence today UNIX is an operating system designed for multi tasking by mul
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape