nixCraft Linux / UNIX Newsletter

Link to [RSS/Feed] nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

Delete a non-empty directory when you get directory not empty error on Linux

Posted: 24 May 2017 10:28 AM PDT

I am trying to remove a directory named data in my $HOME. However, I am getting an error that read as 'rmdir: data/: Directory not empty'. How do I delete a non-empty directory in bash terminal running on Linux operating system?

7 Awesome ChatOps Open Source Software For Conversation-driven Development and Management

Posted: 24 May 2017 09:38 AM PDT

A software bot is nothing but a set of scripts or an independent program that connects to web services or chat services as a client to perform automated functions. Often, bots are deployed from a server. It runs in background and performer various activities such as giving out information, providing an answer to common questions, … Continue reading "7 Awesome ChatOps Open Source Software For Conversation-driven Development and Management"

Windows like Ctrl + Alt + Delete on MacOS App To Kill Tasks

Posted: 24 May 2017 07:41 AM PDT

On Windows, I can hit Ctrl + Alt + Delete and kill apps or do other stuff. Sometimes Firefox browser hangs on macOS. Is there an equivalent of Ctrl + Alt + Delete keyboard shortcut to kill frozen apps on Apple macOS Sierra?

How to use sed to find and replace text in files in Linux / Unix shell

Posted: 24 May 2017 04:05 AM PDT

I am a new Linux user. I wanted to find the text called "foo" and replaced to "bar" in the file named "hosts.txt." How do I use the sed command to find and replace on Linux or UNIX-like system?