answersLogoWhite

0


Best Answer

Assuming you are looking for a specific file in a location, it's as simple as ls <name of file.> assuming you are in the directory you expect it to be in.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

12y ago

ls command is used to list the files

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the command to list only one file?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What does the cat command do?

cat command concatenates files and prints on the standard output. 1. If you specify only one file it will just display that file 2. If you specify multiple files they will be displayed one after the other.


How do I write a batch file to search recursive folders for a list of partial file names with wildcards and then delete the files?

No need for a batch file, the following commands will do it: CD folder FOR /F %i IN (files.txt) DO DEL %i /P /F /S The CD command sets the current folder. All deletions will occur in the specified folder and its sub-folders. The files.txt file must be a list of file names (wildcards permitted) with one file name per line. If this file does not reside in the current folder you must specify the fully-qualified path or the relative path (relative to the current folder). The FOR loop essentially executes the DEL command for each file in files.txt. The DEL command line switches are: /P (prompt for confirmation before deleting each file) /F (force delete read-only files) /S (recurse through sub-folders of the current folder). To suppress prompting, remove /P but add /Q (quiet mode) to suppress prompting on global wildcards. For more help on this, enter DEL /? at the command prompt. For more help on the FOr command, type FOR /? at the command prompt. If used in a command script (.cmd) or batch file (.bat), replace %i with %%i. The only real advantage of using a batch file (other than to save a bit of typing) is that you can also pass the root folder and the file containing your file list as parameters (identified by %1, %2, etc).


Which command is used to move a file?

The command MV is used to move a file in simple Linux Code. This command will move files and directories from one spot to another spot. To move a file, one would simply type in the letters MV before its name.


What is the difference between the cat and more commands in Unix?

Both the 'more' and the 'cat' commands will list the contents of one or more files. In that case, the main difference between the two commands is that 'more' is a 'pager' program, meaning that it stops at the end of every page and waits for the user. The 'cat' command will list everything in the file without stopping. One other thing that 'cat' does that 'more' does not is to concatenate (add/merge) files together. 'more' is not designed to do that. Lastly, some versions of 'more' can traverse a file forwards and backwards and have simple searching capabilities, which 'cat' does not.


When I run a batch file I can open another one in it but how do I make it so that when I open it the rest of the file doesn't exacute until the opened one exits?

Use the CALL command. Enter "CALL /?" at the command prompt for details.


What happens when you drag a file or folder from one disk to another?

Where you drag from one folder to another on the same drive, Windows interprets this as a CUT/PASTE command and moves the file from one folder to the other. Where you drag a file to a folder on another drive, Windows interprets this as a COPY/PASTE command and creates a duplicate of the file in the target folder.


What is a hidden file Name a Windows file that is hidden.?

A hidden file is a file file that does not appear in the directory list. A 9x/ME file like this would be boot.ini. A hidden file is a file that is not displayed in a directory list. Whether to hide or display a file is one of the file's attributes kept by the OS. A 9x/Me file like this would be boot.ini.


What command is used when you do not need to maintain a link between an object copied from one file to another file?

copy and paste


I ate a poison apple on oblivion and only have one save file what do i do?

If you're on a PC, you can use the console command player.removespell 00009617 . That is,press the ` key, and type it in. Otherwise, there is no cure.


WHAT IS mv command?

In unix mv command is used to 'move' a file or folder from one location to another. It can also be used for renaming a file or folder. For eg: to change the name of a file 'sample.txt' to 'testfile.txt', mv sample.txt testfile.txt Enter 'mv --help' or 'man mv' in the shell prompt for the manual page of mv command.


5 What is the purpose of the command interpreter?

A command interpreter reads instructions from the user or from a file of instructions and executes them by converting them into one or more system calls.


What do you understand by a linked list in data structure?

link list is a process by which we can add one file with another