click below
click below
Normal Size Small Size show me how
Linux Common Options
Common Commands & Options
Question | Answer |
---|---|
at 10:15pm | Schedules commands to run at 10:15pm on the current date. |
at 10:15pm July 15 | Schedules commands to run at at 10:15pm on July 15 |
at midnight | Schedules commands to run at midnight on the current date. |
at noon July 15 | Schedules commands to run at noon on July 15. |
at teatime | Schedules commands to run at 4:00pm on the current date. |
at tomorrow | Schedules commands to run the next day. |
at now + 5 minutes | Schedules commands to run in 5 minutes. |
at now + 10 hours | Schedules commands to run in 10 hours. |
at now + 4 days | Schedules commands to run in 4 days. |
at now + 2 weeks | Schedules commands to run in 2 weeks. |
at now at batch | Schedules commands to run immediately. |
at 9:00am 01/30/2011 at 9:00am 01032011 at 9:00am 03.01.2011 | Schedules commands to run at 9am on January 3, 2011. |
SIGHUP (1) | Hang-up signal. Stops a process, then restarts it with the same PID. |
SIGINT (2) | Sends an interrupt signal to a process. One of the weakest kill signals but works most of the time. Ctrl+c is to kill a process is actually a SIGINT. |
SIGQUIT (3) | Known as a Core Dump, this quit signal terminates a process by taking the info in memory and saving it to a file called core on the hard disk in the current working directory. Use Ctrl+\ to send a SIGQUIT signal to a process currently running. |
SIGTERM (15) | This Software Termination signal is the most common kill signal used by programs to kill other processes. It is the default kill signal used by the kill command. |
SIGKILL (9) | Known as the absolute kill signal, this signal forces the Linux kernel to stop executing the process by sending the processes resources to a special device file called /dev/null |
ls –a | Lists all filenames. |
ls --all | Lists all filenames. |
ls –A | Lists most filenames (excludes the . and .. special files). |
ls --almost-all | Lists most filenames (excludes the . and .. special files). |
ls –C | Lists filenames in column format. |
ls --color=n | Lists filenames without color. |
ls –d | Lists directory names instead of their contents. |
ls --directory | Lists directory names instead of their contents. |
ls –f | Lists filenames without sorting. |
ls –F | Lists filenames classified by file type. |
ls --classify | Lists filenames classified by file type. |
ls --full-time | Lists filenames in long format and displays the full modification time. |
ls –l | Lists filenames in long format. |
ls –lh | Lists filenames in long format with human-readable (easy-to-read) file sizes. |
ls –l --human-readable | Lists filenames in long format with human-readable (easy-to-read) file sizes. |
ls -lG | List filenames in long format but omits the group information. |
ls –l --no-group | Lists filenames in long format but omits the group information. |
ls –o | Lists filenames in long format but omits the group information. |
ls –r | Lists filenames reverse sorted. |
ls --recursive | Lists filenames reverse sorted. |
ls –s | Lists filenames and their associated size in kilobytes (KB). |
ls –S | Lists filenames sorted by file size. |
ls –t | Lists filenames sorted by modification time. |
ls –U | Lists filenames without sorting. |
ls –x | Lists filenames in rows rather than in columns. |