Quantcast
Channel: nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format (RSS/FEED)
Browsing all 2612 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to ping and test for a specific port from Linux or Unix command linenixCraft

View Article


Image may be NSFW.
Clik here to view.

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

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?

View Article


Image may be NSFW.
Clik here to view.

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

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?

View Article

Image may be NSFW.
Clik here to view.

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

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...

View Article

7 Awesome ChatOps Open Source Software For Conversation-driven Development...

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...

View Article


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

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...

View Article

Image may be NSFW.
Clik here to view.

Alpine Linux 3.6.0 has been releasednixCraft

Alpine Linux version 3.6 has been released. Alpine Linux is built around musl libc and busybox. This makes it smaller and more resource efficient than traditional GNU/Linux distributions. A container...

View Article

Image may be NSFW.
Clik here to view.

How to unzip a zip file using the Linux and Unix bash shell terminalnixCraft

I grabbed a master.zip file from the Github public repo on my Linux VPS hosted at AWS. How do I unzip the file using bash ssh terminal? How can I unzip a file on Ubuntu/CentOS/Debian Linux/UNIX-like...

View Article


Image may be NSFW.
Clik here to view.

How to login with root password when using Ansible toolnixCraft

I need to run a Linux command over 20 servers using a root user and password in Ansible too. How do I pass a user and password in Ansible over ssh based session? How can I set a default Ansible...

View Article


Image may be NSFW.
Clik here to view.

How to use the cURL command to do a POST data to fields on Linux or UnixnixCraft

How do I use the cURL command on Linux or Unix to post data i.e. upload something on Linux or Unix? How do I make a POST request with the cURL Linux command-line to upload file?

View Article

How to list VM images in LXD (Linux Containers)nixCraft

I am using LXD ("Linux Container") on Ubuntu Linux serer. How do I list all available VM images for installation in the LXD image store?

View Article

Google Chrome: Clear or flush the DNS cachenixCraft

I think Google has its own dns caching system. I am getting the same old dns entry in my Google Chrome browser on both Linux and Apple OS X. How do I flush or clear the DNS cache in Google Chrome...

View Article

Libreboot T400: A GNU+Linux laptop that respects your freedomnixCraft

The Libreboot T400 is certified by the Free Software Foundation, under their Respects Your Freedom hardware certification program. It is now available at a reduced price without any binary blobs or...

View Article


Image may be NSFW.
Clik here to view.

How to disable ssh motd welcome message on Ubuntu LinuxnixCraft

I want to disable the message of the day (motd) welcome message after I login over ssh on Ubuntu Linux. How do I disable motd on Ubuntu Linux 17.04?

View Article

Image may be NSFW.
Clik here to view.

How To Install Nginx web server on Alpine LinuxnixCraft

I am a new user of Alpine Linux. How do I install nginx web server on Alpine Linux?

View Article


Image may be NSFW.
Clik here to view.

How to count total number of word occurrences using grep on Linux or...

I want to find out how many times a word (say foo or an IP address) occurs in a text file using the grep command on Linux or Unix-like system?

View Article

Image may be NSFW.
Clik here to view.

How to upload ssh public key to as authorized_key using AnsiblenixCraft

How do I use Ansible to upload ssh public key to as authorized_key to multiple Linux or Unix servers saved in an inventory file?

View Article


Image may be NSFW.
Clik here to view.

How to append text to a file when using sudo command on Linux or UnixnixCraft

I am trying to add entry to /etc/hosts file using 'sudo echo '192.168.1.254 router' >> /etc/hosts' but getting an error that read as, -bash: /etc/hosts: Permission denied. How do I insert or...

View Article

Image may be NSFW.
Clik here to view.

How to extract multiple tar ball (*.tar.gz) files in directory on Linux or...

I have tried tar -xvf *.tar.gz command, but getting an error that read as:tar (child): *.gz: Cannot open: No such file or directory tar (child): Error is not recoverable: exiting now tar: Child...

View Article

Image may be NSFW.
Clik here to view.

Linux security alert: Bug in sudo’s get_process_ttyname() [ CVE-2017-1000367...

There is a serious vulnerability in sudo command that grants root access to anyone with a shell account. It works on SELinux enabled systems such as CentOS/RHEL and others too. A local user with...

View Article
Browsing all 2612 articles
Browse latest View live