Enables and disables are the built-in shell commands. enable command is used to start the printers or classes whereas the disable command is used to stop the printers or classes.
Syntax For enable Command:
enable [-a] [-dnps] [-f filename][name ...]
Syntax For disable Command:
disable [-c] [-W] [ -r [ reason ] ] printer
- -a : List all builtins with the message of whether it is enabled or not.
- -c : It will cancel the requests which are currently printing.
- -d : Delete a builtin loaded with `-f’.
- -W : Wait until the request currently being printed is finished before disabling printer. This option cannot be used with the -c option. If the printer is remote then the -W option will be silently ignored.
- -r reason : It assigns a reason for the disabling of the printer(s).
- printer : The name of the printer to be enabled or disabled.
- -n: Disable the names listed, otherwise names are enabled.
- mindepth and maxdepth in Linux find() command for limiting search to a specific directory.
- Linux Operating System | CLI (Command Line Interface) and GUI (Graphic User Interface)
- Difference between locate, which and find Command in Linux
- How to use aplay and spd-say command in Linux?
- Working with zcat, zmore and zless Command in Linux
- Nice and Renice Command in Linux with Examples
- Iperf Command to Test Speed, Performance and Bandwidth of Network in Linux
- How to find time taken by a command/program on Linux Shell?
- Netstat command in Linux
- Practical applications of 'ls' command in Linux
- 'dd' command in Linux
- 'IPCS' command in Linux with examples
- select command in Linux with examples
- grep command in Unix/Linux
- Sed Command in Linux/Unix with examples
- ZIP command in Linux with examples
- SORT command in Linux/Unix with examples
- Gzip Command in Linux
- Cat command in Linux with examples
- Head command in Linux with examples
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.
Improved By : Akanksha_Rai