Search This Blog

Friday, January 25, 2013

Batch files to list all files and directories in a folder

This summary is not available. Please click here to view the post.

System/tcsh Commands

tcsh command history
List previous commands                            history
Repeat previous command                        !!
Move up in history list                              Ctrl-p (previous)
Move down in history                               Ctrl-n (next)
Cursor left to edit command                     Ctrl-b (backwards)
Cursor right to edit command                   Ctrl-f (forwards)
Delete character in command                   Ctrl-d
Repeat $n$th command in history           !$n$
Repeat command beginning with str        !str


Users
Seeing who is logged in                             who or finger
Getting a username                                     finger lastname
Changing identities                                     su username
Seeing who you are                                     whoami


Changing machines
Logging on to another machine                     rsh hostname
Logging out from any machine                     logout
Which machine is this?                                  hostname

tcsh, csh job control

Run command in the background                     command &
Stop foreground job                                         C-z
Run stopped job in foreground                        fg
Run stopped job in background                       bg
List background jobs                                        jobs
Bring job foreward                                           %[$n$]
Run command at lower priority nice               command





tcsh miscellaneous
Filename, command name completion         <Tab>
List possible completions                             Ctrl-d
Spelling correction                                        ESC s


csh environment
List current settings                             env
Change setting setenv                         VARIABLE value


Process control
List your processes                      ps
Tell a process to die                    kill PID
Kill without mercy                      kill -9 PID
Timing                                         time command


Mail   

Read your new mail                                                mail
Read your old mail                                                 mail -f
Send from console to another user mail                 username
Send file to another user mail [-s subject]              username < filename