About 182,000 results
Open links in new tab
  1. How to delete multiple files at once in Bash on Linux?

    May 9, 2012 · 97 Use a wildcard (*) to match multiple files. For example, the command below will delete all files with names beginning with abc.log.2012-03-.

  2. How do I clear/delete the current line in terminal? [closed]

    Mar 13, 2012 · If I'm using terminal and typing in a line of text for a command, is there a hotkey or any way to clear/delete that line? For example, if my current line/command is something really …

  3. bash - How to delete a directory that contains other subdirectories …

    Jul 16, 2023 · I have a directory that contains files and other directories. I need to delete then all in one command, but without asking me for each file if I'm sure that i want to delete i; there is …

  4. How to delete a single command from history in bash

    Sep 20, 2021 · To permanently delete a command from history, after running history -d <number>, you can run history -w. This writes both the in-memory session and any edits to the …

  5. How can I delete multiple lines in vi? - Stack Overflow

    Apr 10, 2013 · I have tried to follow the following: How to delete selected text in VI editor but 5dd gives E492: Not an editor command: 5dd I then tried: 5d Which only deletes a single line. How …

  6. linux - How to delete history of last 10 commands in shell? - Stack ...

    I can delete single one by history -d 511, but how to delete last 10 commands and in between 10 commands history using single command in shell? Can we write a bash script and execute for …

  7. How do you delete files older than specific date in Linux?

    95 I used the below command to delete files older than a year. find /path/* -mtime +365 -exec rm -rf {} \; But now I want to delete all files whose modified time is older than 01 Jan 2014. How do …

  8. linux - find and delete file or folder older than x days - Stack …

    Do you want to delete directories and files with a single find command, or are you ok with two separate commands?

  9. linux - How to delete selected text in the vi editor - Stack Overflow

    Dec 15, 2019 · To delete multiple lines in vi, use something like 5dd to delete 5 lines. If you're not using Vim, I would strongly recommend doing so. You can use visual selection, where you …

  10. linux - How do I delete an exported environment variable ... - Stack ...

    Jan 25, 2022 · In Linux You can edit your shell profile file, such as .bashrc or .bash_profile in the /etc/profile.d directory and remove the line that exports the variable. .bashrc file: nano …