Use the command 'head statusreport' (without the quotes)
tail would display the end of the file names statusreport. (tail statusreport)
The shell interpreter uses the PATH or path variable to determine which directories to look in. It will look for an executable file with the same name as the command.
The 'file' command in Unix attempts to guess what type of file you are looking at by reading the first several sections of the file and comparing it to a list of known contents for files. It is a useful command if you just want to know what type of file something is without having to examine it yourself. The command is not perfect because it does not detect all types of files but it does a reasonable job of guessing. It is used because in Unix there are no file extension types to tell us what kind of file a given file might be; you have to look inside the file to tell how it might be used.
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.
To help look things documents and other things up.
The 'more' command is considered a 'pager' program, which means it displays 1 screen page at a time as it pages through the file. This program allows you to look at the contents of a file one screen at a time, at your speed ..
You look at the file. A program such as Windows Explorer - or the equivalent in other operating systems - can tell you the size. Also, a command such as "dir" (in Windows), or "ls" (in Linux or Unix).
Use the "dir" command (without the quotes) to see all files in the current directory. Use the "type" command (Just like before, no quotation marks.) followed by a file you want to look at to see the file's contents. Use the "echo" command (Okay, I think you get the point about the quotation marks now.) to print something to the screen. Not very useful. Is it? You can use the "echo" command to overwrite files too! For example, "echo Hello >> a.txt" will overwrite a.txt with the text "Hello." If a.txt does not exist, the echo command will create one.
It depends on the implementation details of the compiler and on the settings contains in the various project files. By default, the output file (in unix) is named a.out and is located in the same directory as the source file, but that can be changed on the command line and in the makefile. More complex implementations, such as Microsoft Visual Studio, have project files where there is a fine degree of control. You need to look at these control files to locate the executable.
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).
You don't say what you want to do with the permissions, but most shells have a 'test' command that can look at various permissions. Look at the 'man' command for the shell you are running in to see what tests are possible on files and directories. You can check to see if the target is a directory, or a file, and whether it has read, write, or execute/search permissions. Again, it varies by the shell environment.
Assuming you have a properly configured .xinitrc file, the command is startx. However, if you want a full login screen and everything you'll need to look into how your distribution launches daemons and install a display manager.
Look at the "wc" command's man page, it will give you a count of all characters, including the newline character.