Ask Your Question

In nodejs, what is the process to delete the terminal and go back to previous commands?

asked 2022-09-14 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2023-04-03 09:00:00 +0000

bukephalos gravatar image

In Node.js, you cannot delete the terminal itself, but you can clear the terminal screen by running the command clear or CTRL + L (on most terminals).

To go back to previous commands, you can use the Up and Down arrow keys on your keyboard to cycle through the command history. Alternatively, you can use the history command to view a list of previous commands and their numbers, then use the !! command to execute the last command or !n (where n is the command number) to execute a specific command from the history.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer

Question Tools


Asked: 2022-09-14 11:00:00 +0000

Seen: 12 times

Last updated: Apr 03 '23