Il y a de nouveaux articles disponibles, cliquez pour rafraîchir la page.
Hier — 22 septembre 2017nixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

userdel: user vivek is currently used by process 749 error and fix on Linux

Par Vivek Gite
I am trying to delete a user named vivek using the userdel command as follows
userdel -r vivek userdel: user vivek is currently used by process 749

How do I fix this problem and delete username vivek on a Debian Linux 9.x server?

How to find bash shell function source code on Linux/Unix

Par Vivek Gite
I am a new Linux server user. I cannot figure out how to find out the source code of a bash function named foo() which is defined. How to locate the file where a bash function is defined and how to view the source code of foo() from shell prompt itself?
À partir d’avant-hiernixCraft: Linux Tips, Hacks, Tutorials, And Ideas In Blog Format

How to find and replace text/IP address with Ansible

Par Vivek Gite
I need to find an IP address in the sshd_config file and replace with a fresh one for over 100+ VMs. How do I use Ansible to do so? Is it possible to search replace single string or IP address? Yes, you can use the following Ansible modules: replace – This module will replace all … Continue reading "How to find and replace text/IP address with Ansible"

How To Run the .sh File Shell Script In Linux / UNIX

Par Vivek Gite
Ihave downloaded software for my Linux or Unix-like system from the Internet. There is a file called How do I run an .sh file to install the software? How do your run .sh files from command line?
  • 30 août 2017 à 16:59

How to install FreeBSD 11 on Google Cloud Compute VM

Par Vivek Gite
How can I deploy or install FreeBSD version 11.x Unix operating system on the Google cloud engine? Do I need to create my own FreeBSD disk image to start with the Google Cloud Compute?
  • 30 août 2017 à 16:49

How to colorizing cat command output or files using ccat app on Linux or Unix system

Par Vivek Gite
The [nixcmd name="cat"] (short for concatenate) is one of the most frequently used flexible commands on Linux, Apple MacOS X, *BSD (FreeBSD / OpenBSD / NetBSD), Unix-like operating systems. It is useful to display text files on screen, copy text files, combine text files, create new text files and more. If you cat command with colours, try ccat app.

How to corrects your previous Linux/Unix command with thefuck app

Par Vivek Gite
Let us face it we all make mistakes at the command line. Typos? Wrong options? Forget to add sudo? The list goes on. There is a neat little app called thefuck which corrects your previous Linux and Unix command line mistakes.

How To Set Up a Firewall with PF on FreeBSD to Protect a Web Server

Par Vivek Gite
I am a new FreeBSD server user and moved from netfilter on Linux. How do I setup a firewall with PF on FreeBSD server to protect a web server with single public IP address and interface?

The Librem 5: Your Ultimate GNU/Linux FLOSS Smartphone

Par Vivek Gite
Purism is well known for Linux based laptop with Coreboot. Now they started a crowdfunding campaign today for its smartphone called Purism Librem 5. What is so special about this phone? It is 100% powered by GNU/Linux. You can run any Linux distro on it. The phone provides high security and privacy features, i.e., it does not track you. This seems like an excellent device. One that I would certainly purchase or recommend to a privacy-conscious person.

Display or print UNIX / Linux path ~ $PATH variable

Par Vivek Gite
I am a new Linux or Unix system user and I am using a Debian Linux VPS. How do I print current path settings under BASH or sh or ksh shell?
  • 24 août 2017 à 10:27

I put a cronjob in /etc/cron.{hourly,daily,weekly,monthly} and it does not run and how can I troubleshoot it?

Par Vivek Gite

Recently I created a simple shell script called in /root/scripts directory to just backup MySQL database and dumped it to /nfs/mysql/ directory. I put a file (more like used the ln command to create a soft link ) in /etc/cron.hourly/ and it doesn't run. There was no error in systemd log or cron log. Why is my cron job was not working, and here is how I troubleshoot it.

How to delete files containing a character or number/digit in their filename on Linux or Unix

Par Vivek Gite
I am a new Linux system user. How do I delete file containing a character 'a' or 'z' in their filename or digit such as '4' or '2' in their filename on Linux or Unix bash shell prompt?

Linux: 25 Iptables Netfilter Firewall Examples For New SysAdmins

Par Vivek Gite

Linux comes with a host based firewall called Netfilter. This guide shows essential iptables command to control your daily life firewall rules and security of Linux server running on the bare metal server, router, or cloud server.
  • 23 août 2017 à 18:59

PHP Log All Errors to a Log File to Get Detailed Information

Par Vivek Gite
Ths quick guide describes how to log error messages to a text file when using PHP server side programming language on a Linux/Unix-like system for debugging purpose.
  • 23 août 2017 à 18:45

40 Linux Server Hardening Security Tips [2017 edition]

Par Vivek Gite
Securing your Linux server is important to protect your data, intellectual property, and time, from the hands of crackers (hackers). The system administrator is responsible for security Linux box. In this first part of a Linux server security series, I will provide 40 hardening tips for default installation of Linux system.
  • 19 août 2017 à 17:00

Linux/Unix desktop fun: Bastet Tetris(r) clone with block-choosing AI for console

Par Vivek Gite
Xkcd - hell
Do you love the puzzle and Linux/Unix-like system? Command line? Try ncurses based Tetris clone which is harder than every other Tetris out there. From the project home page:
Have you ever thought Tetris(R) was evil because it wouldn't send you that straight "I" brick you needed in order to clear four rows at the same time? Well Tetris(R) probably isn't evil, but Bastet certainly is. >:-) Bastet stands for "bastard tetris", and is a simple ncurses-based Tetris(R) clone for Linux. Unlike normal Tetris(R), however, Bastet does not choose your next brick at random. Instead, Bastet uses a special algorithm designed to choose the worst brick possible. As you can imagine, playing Bastet can be a very frustrating experience!

How To Setup a Firewall with UFW on an Ubuntu and Debian Linux

Par Vivek Gite
Learn how to use UFW to secure your server and apply common firewall rules /commands on a Ubuntu/Debian Linux server.
  • 18 août 2017 à 17:00

Linux: Iptables List and Show All NAT IPTables Rules Command

Par Vivek Gite
I am using /sbin/iptables -L -v -n | more command. However, I am unable to list NAT rules. How do I use the iptables command to view or list NAT rules stored in NAT tables? How do I see all the rules in NAT tables under CentOS / RHEL / Debian / Ubuntu Linux based server?
  • 17 août 2017 à 07:30

How to install vnstat console-based network traffic monitor on FreeBSD

Par Vivek Gite
How do I install vnStat under FreeBSD version 8/9/10/11 operating system to keep track of my network traffic? (Not a fan of FreeBSD? try vnstat on a Debian/Ubuntu/Fedora Linux or CentOS/RHEL version 6.x/7.x.)
  • 16 août 2017 à 04:04