answersLogoWhite

0


Best Answer

(ls) means list directory

(ls -l) to long list

and also used to show file or directory permissions.

==========================================================

Tray it

==========================================================

[root@localhost /]# ls /

ahmedtest boot etc lib media mnt opt root selinux sys usr

bin dev home lost+found misc net proc sbin srv tmp var

[root@localhost /]# ls /etc/passwd

/etc/passwd

[root@localhost /]# ls -l /etc/passwd

-rw-r--r-- 1 root root 1587 May 27 02:30 /etc/passwd

[root@localhost /]# ls -l /etc/passwd

-rw-r--r-- 1 root root 1587 May 27 02:30 /etc/passwd

[root@localhost /]# ls -n /etc/passwd

-rw-r--r-- 1 0 0 1587 May 27 02:30 /etc/passwd

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is Linux command ls-file name command?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Which Linux command displays your login name?

The whoami command.


What do you mean by date command in Linux?

Exactly what the name says: It displays and sets the date on a Linux system.


What does the k command do in Linux?

k is not a standard command in Linux.


What is the command to turn on Linux?

There is no such command. Obviously, in order to enter a command into the prompt, Linux must already be on.


What command prints the full name of the current day in Linux?

date -u +%A


Which Linux command is equivalent to Windows' MD command?

In a Linux terminal, the command to create a new directory is: mkdir .


What command would you use to test Dns name resolution at a Windows command prompt?

nslookup if it was a linux machine nslookup works too, but dig -x on a linux machine will get more info for you


What Linux command sets a files permission?

In Linux the chmod command is used to set file permissions.


What is helo for Linux?

Nothing. Helo is not a recognized command in linux.


What is the maximum number of characters Linux allows in a keyboard command?

Linux does not have a limit as to the number of characters you can enter in a command.


What is the Linux command for installing an application?

At a terminal prompt: sudo apt-get install <application-name>


What happens when you enter a Linux command in capital letters?

You get a command not found. Linux is case sensitive. So, for example: The command "systemctl" will not be the same as "SystemCTL" to a shell in Linux. One will work, the other will return an error saying there's no such command.