answersLogoWhite

0


Best Answer

Assuming you had a file called 'file' in the current working directory it would try to guess what type of file it is, based on its contents.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the output of the command file file in unix?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is Tee Command in unix?

The Unix/Linux tee command permits the forking of a data pipe in a shell script or at the command line. The teecommand does this by both writing it's standard input to a file and to it's standard output simultaneously. Most implementations of tee provide for both file overwrite/creation and file appends by command line switch options.


What do CD command do in unix?

The 'CD' command is not standard for Unix. The 'cd' command, however, will change directories (folders). It is a means of navigating the Unix file system.


What is a file command used to create or start a new file?

The 'touch' command creates a new empty file in Unix.


How do you create a tee in unix?

The 'tee' command creates one for you automatically. You would use it to simultaneously look at output from a process and redirect it to a disk file (for example).


What is the unix command to tail a file that is being written to?

It is very common to use the 'tail' command to look at a file that is being written to in order to monitor the output of a process. Most systems recognize the tail -f command for that purpose. You must then use an interrupt signal to stop it from looking at the active file.


When running commands such as ipconfig or tracert saved in a .bat file how do I save the output. FYI I am using notepad?

Use "> xxx.xxx" after the name of the .bat file on the command line to save the output in file xxx.xxx Example: myscript.bat > myoutput.txt This runs the commands in the file myscript.bat, but instead of printing the output on the screen saves the output to the file myoutput.txt Note that this command syntax is used in Unix (Unix probably copied it from Multics) and Microsoft added it to MSDOS along with lots of other Unix like features at some point, because of their usefulness (you could not do this with early versions of MSDOS which was based on CP/M-86 which borrowed the syntax of one of the DEC PDP-8 OSs; none of which could redirect program output to files).


How do you create dummy file in unix?

using touch command of UNIX. syntax touch <filename> will create dummy regular file.


What is a filter in Unix?

A Unix filter is a command pattern that allows the output of one command to be "piped" into the input of the next command. Commands like 'ls' which list a directory are not filters since they only generate output. Filter examples are grep, sed, sort, uniq, awk. Commands in Unix are usually filters unless they only create output, like 'ls', 'vi', etc.


How do you check a file for spelling errors in unix?

Depending on the Unix vendor, there is usually a 'spell' or 'ispell' command available to spell check words in a file.


What is the command echo in unix mean?

it is a command in unix and unix like operating systems that places a string on the computer terminal.It is typically used in shell scripts and bath files screen or a file.


In unix how will you find extension of file using commands?

Unix files do not rely on extensions, therefore there is no command to find them.


How do you make a new command in Unix?

first, make a file. in the file you type in the command's name. an example would be the command date. name the file what you want to call that command. when you use the command, type in cat filename and the computer will do the command.