Bash
  2 Questions 
   2 Total Posts 
   1 Snippets 
   All 
   How to fix corrupt history file .zsh_history?
  Asked by     Sohail    ·  
 On open terminal, I am getting this error: zsh: corrupt history file /home/harish/.zsh_history    This is not allowing search back through the history with CTRL+R and editing previous (...)
   0 
   1 
   13158 
 How to check that if a directory exists in a Bash shell script?
  Asked by     pehow    ·  
 In my shell script, I need to check if a directory exists or not. So, here what command I should use to verify a directory exist or not in a given path?
   0 
   2 
   4695 
 How to Write/Append Multiple Lines to a File from terminal?
Sometimes you might be needed to write or append some text to a file from the terminal. You can use different strategies to write multiple lines to a record file through the command (...)
    0 
   0 
   9451 
 How to Run Command Using SSH On Remote Machine?
There are different ways to run multiple commands on a remote Unix server using SSH. This article shows the most straightforward and easy approach to SSH and runs multiple commands (...)
    0 
   0 
   6314