Caveat: Last updated in 2007. Use with caution!
Linux systems (like the CS lab machines) provide the same or similar information via the command info. Type info info for more information about this command.
If you include -F, files that are really directories (a directory in Unix is just a special kind of file) are printed with a / after their names, and executable files (programs, etc.) are printed with a * after their names.
If you include -l, more information is printed for each file, including the date of last modification.
Rank Owner Job Files Total Size 1st me 41 lamport_quote, rustan_quote ... 1534 bytes 2nd you 42 myfile.output 40 bytes ....
mypgm < inputfile
mypgm > outputfile
mypgm < inputfile > outputfile
Example: ls produces the following output:
program1.c program2.c another_program.cTo edit another_program.c, you can type vi an and then press the TAB key. The system should fill in the rest of the file name another_program.c on the command line; you can then press ENTER to execute the command. To edit one of the other C files, you might type vi p and press the TAB key. The system should then fill in as much of the name as it can and beep. You will see
vi programon the command line. You can then enter the rest of the name (1.c or 2.c) and press ENTER to execute the command. (Or you can just type the 1 or 2 and press TAB again to let the system fill in the rest of the name.)
redefines the cp and mv commands to always use the -i option, and defines new commands rmi (rm with the -i option) and l (ls with options -alF). (Note that ls -alF is the same as ls -a -l -F.)alias cp='cp -i' alias mv='mv -i' alias rmi='rm -i' alias l='ls -alF'