reset command in Linux with Examples Last Updated : 16 Oct, 2024 Comments Improve Suggest changes Like Article Like Report reset command in the Linux system is used to initialize the terminal. This is useful once a program dies leaving a terminal in an abnormal state. Note that you may have to type reset to get the terminal up and work, as carriage-return may no longer work in the abnormal state. Also, the terminal will often not going to echo the command. Syntaxreset [-IQVcqrsw] [-] [-e ch] [-i ch] [-k ch] [-m mapping] [terminal]Basic ExampleSuppose we have a terminal screen with a bunch of commands written on the screen and when we will use the reset command then we will have an initialized terminal screen as shown below.Before using reset command:The terminal screen might be filled with strange symbols or unresponsive to input.After using reset command:The terminal screen will be cleared and initialized, giving you a clean slate to continue working.Common Options for reset Command--help: It will print the general syntax of the command along with the various options that can be used with the reset command as well as gives a brief description about each option. OptionDescriptionreset -cSets the control characters and modes.reset -eSets the erase character to ch.reset -lDoes not send the terminal or tab initialization strings to the terminal.reset -iSets the interrupt character to ch.reset -kSets the line kill character to ch.reset -mSpecifies a mapping from a port type to a terminal.reset -QDoes not display values for erase, interrupt, and line kill characters. Normally, these are displayed if they differ from the system’s defaults.reset -qDisplays the terminal type to the standard output without initializing the terminal. The option - by itself is equivalent but considered archaic.reset -rPrints the terminal type to the standard error output.reset -sPrints shell commands to initialize the environment variable TERM to the standard output.reset -VReports the version of ncurses used in the program and exits.reset -wResizes the window to match the size deduced via setupterm. Normally, this has no effect unless setupterm cannot detect the window size.ConclusionThe reset command is a powerful and essential tool in any Linux user’s toolkit, especially when working with command-line interfaces prone to instability. By understanding the different options available, you can handle various terminal issues and ensure that your working environment is always in a stable state. Comment More infoAdvertise with us Next Article reset command in Linux with Examples R rahulkumarmandal Follow Improve Article Tags : Linux-Unix linux-command Linux-misc-commands Similar Reads halt, poweroff and reboot Commands in Linux In Linux systems, the halt, poweroff, and reboot commands are essential tools for controlling the system's hardware by stopping the CPU, shutting down the system, or restarting it. These commands are typically restricted to superusers, as they involve critical actions that impact the system hardware 4 min read printf command in Linux with Examples The 'printf' command in Linux is a versatile tool used to display formatted text, numbers, or other data types directly in the terminal. Like the 'printf' function in programming languages like C, the Linux printf command allows users to format output with great precision, making it ideal for script 4 min read How to List Running Processes in Linux | ps Command As we all know Linux is a multitasking and multi-user system. So, it allows multiple processes to operate simultaneously without interfering with each other. Process is one of the important fundamental concepts of the Linux OS. A process is an executing instance of a program that carries out differe 10 min read How to Display Current Working Directory in Linux | pwd Command The 'pwd,' which stands for "print working directory." In this article, we will delve into the 'pwd' command, exploring its functionality, usage, and various examples. It prints the path of the working directory, starting from the root. pwd is shell built-in command(pwd) or an actual binary(/bin/pwd 4 min read ranlib command in Linux with Examples ranlib command in Linux is used to generate index to archive. ranlib generates an index to the contents of an archive and it will be stored in the archive. The index lists each symbol defined by a member of an archive which is simply a relocatable object file. You may use 'nm -s' or 'nm âprint-armap 4 min read rcp Command in Linux with examples When working in a Linux environment, there often comes a time when you need to transfer files from one computer to another. While more secure options like scp or rsync exist, the rcp (Remote Copy Protocol) command offers a simple and efficient way to copy files between systems, especially for beginn 5 min read read command in Linux with Examples read command in the Linux system is used to read from a file descriptor. This command reads up the total number of bytes from the specified file descriptor into the buffer. If the number or count is zero, this command may detect errors. But on success, it returns the number of bytes read. Zero indic 3 min read readelf command in Linux with Examples When we compile source code, an object file is generated of the program and with the help of linker, this object files gets converted to a binary file which, only the machine can understand. This kind of file follows some structures one of which is ELF(Executable and Linkable Format). And to get the 4 min read readlink command in Linux with Examples The 'readlink' command in Linux is a valuable tool used to print resolved symbolic links or canonical file names. In simpler terms, when dealing with symbolic links and you need to know the actual path they represent, the 'readlink' command reveals the path of the symbolic link. This command is part 3 min read Reboot Linux System Command with Examples Rebooting a Linux system is a fundamental administrative task necessary for applying updates, troubleshooting, or system maintenance. Various commands are available to reboot a Linux system, each with specific options and use cases. This guide explores essential reboot commands such as `reboot`, `sh 11 min read Like