answersLogoWhite

0


Best Answer

ls

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What Linux command that lists the basic files in a directory is?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What command list basic directory files?

In Linux: ls In Windows: dir


Which Linux command will delete a directory as well as all its files and sub directories?

rm -rv /path/to/directory


How do you remove a full directory in Linux?

To remove a directory that is full with other files or directories, use the below command. rm -rf directory


What happens when you give the command cp to do done in Linux?

Assuming to and do are valid files and the directory done exists, it will place a copy of to and do in the done directory.


What is the pwd command in Linux?

The pwd command prints the working directory. The working directory is the directory you are "in", where operations on files that don't have an absolute path specified will be performed. For instance, if my working directory is /home/username/stuff, then the command echo "test" > test.txt would place the file test.txt in that directory.


What is the command is used to remove directory in Linux?

Assuming the directory is in your Home directory use: rmdir directory-name This will fail if there are files within the directory. In this case, use rm -r directory-name.


How do you move files to a directory in Linux?

mv file /path/to/directory


Write the Linux command to display the information about LS command?

Using man ls will open the manual page for the ls command. The ls command lists the files and folders in the current directory.


What Linux command is used to zip only a subdirectory?

In order to zip a subdirectory in Linux you would use the zip command with the recursive flag to specify that it should add all files under that directory into the zip file. The command would then be zip -r .zip .


What command you would use to submit jobs for printing in Linux?

lpr For example: lpr *.pdf to print all pdf files in your current directory.


What Linux command sets a files permission?

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


What is the directory in Linux?

One of the most noticable differences between Linux and Windows is the directory structure. Not only is the format different, but the logic of where to find things is different In Windows, you use this format to access a directory: C:\Folder1\subfolder\file.txt In Linux, this is the basic format: /Folder1/subfolder/file.txt You'll notice that the slashes are forward slashes in Linux versus backslashes in Windows. Also, there is no drive name (C:, D:, etc.) in Linux. At boot, the 'root partition' is mounted at /. All files, folders, devices and drives are mounted under /. Though it is not apparent from this example, it is important to note that files and folders in Linux are case sensitive. /Folder1/subfolder/file.txt is not the same as /folder1/subfolder/file.txt.