Today's Question:  What does your personal desk look like?        GIVE A SHOUT

 LINUX/UNIX


  How to use xargs command in Linux

What is the xargs command?The xargs command constructs and executes commands provided through standard input. It takes input and converts it into command arguments for another command. This functionality is particularly useful in file management and can be combined with commands like rm, cp, mkdir, and others.Using the xargs commandWhen used alone, the xargs command prompts the user to enter a text string and then passes it to the echo command.This example demonstrates the input provided and the output of the echo command.Combining xargs with findThe find command is often used in conjunction w...

2,540 0       XARGS LINUX


  Linux的早期岁月

我的名字是 Lars Wirzenius,我曾经见证了Linux的起点。Linux现在是一个全球成功的操作系统,但它的开始却非常谦逊。这些是我对Linux最早的日子、它的创造以及它走向今天的记忆。我于1988年秋季开始在赫尔辛基大学攻读计算机科学,并认识了 Linus Torvalds,他也是当年计算机科学专业的新生之一,而且和我一样说瑞典语。在那个学年的末尾,我们得到了一台Unix服务器的访问权限,然后我无意中发现了Usenet,这个讨论系统,因为我误将rm打成了rn,即Usenet阅...

1,238 0       LINUX HISTORY STORY


  Linux Kernel is replacing HTTP link with HTTPS

Linux kernel is in the process of replacing the HTTP links in its source code with HTTPS links. HTTPS is considered more secure than HTTP and can prevent lots of attacks like Man-In-The-Middle attack. Currently there are more than 150 patches submitted by Linux Kernel developers to replace these HTTP links. One thing to be noted is this replacement process is not a manual search and replace process. Indeed, some scripts are created to find out these links and try to find whether there is corresponding HTTPS link available and then do the replacement only if the HTTPS link works....

2,931 0       HTTP LINUX KERNEL HTTPS


  A simple tutorial on Linux nohup command

In our daily work, there might be need to run some important program for hours or even days without being abruptly terminated. In such case, we may want to run the program with command nohup.nohup is the abbreviation of no hangup, i.e, don't hang up or terminate the process. This command will tell the process to ignore the system HUP signal. The HUP signal will be emitted when the terminal is exited or disconnected. Normally process will abort its execution when receiving this signal. Basic SyntaxThe basic syntax for nohup isnohup command argumentsornohup optionsIf you want to know more u...

1,578 1       LINUX NOHUP


  Find files by size in Linux

In Linux systems, you may encounter a situation where there is no enough space on the system while you are trying to install some new packages or writing some data. In this case, you may want to clear some unneeded files. A frequent need will be find the largest files in the system so that they can be deleted first and disk space can be released quickly.In this post, we will show a simple command to find files by size so that we know what files are taking the specified space on the system,This command to be introduced is find. Let's say we want to find the files which are larger than 500M, we ...

1,409 0       FILESIZE FIND LINUX


  Create temp file in Bash using mktemp and trap

When working on Linux Bash, sometimes there is need to create temporary file. A common way of creating temp file on Linux is creating some file in /tmp directory. However there is security risk when creating temp file in /tmp directory. This post will show how to securely create temp file in Linux Bash.When creating file in /tmp directory, there are some security risks. This directory can be accessed by any user on the system, any user can write data into this directory as well. The files created in this directory can also be read by other users. pike@DESKTOP-G352RBR:/tmp$ touch /tmp/info...

33,572 2       TEMP FILE MKTEMP TRAP LINUX


  Set up Superset on ubuntu 16.04 LTS

Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application. Compared with business-focused BI tool like Tableau, superset is more technology-navy. It supports more types of visualization and able to work in distributed manner to boost the query performance. Most importantly, it is free of charge!An example dashboard:Let’s go and set it up.Create a virtualenvAssume Anaconda is installed for python management.# create a virtualenv with python 3.6conda create -n superset python=3.6Install in virtualenventer the virtual environment and follow the of...

6,896 1       UBUNTU TUTORIAL SUPERSET


  Common usage of ls command in Linux

In Linux, ls might be one of the most frequently used commands. It is used to list files in a specific directory. In most cases, we may just use ls -l to list the files under a directory. But have you explored other usages of this command. In this post, we will summarise some other common usages of ls commandAssuming we have below directory structure in our system, let's see them using tree command.List details of the filesIf we want to list the details of the files in /home/alvin/test_dir, we can funls -lR /home/alvin/test_dir/Output:[alvin@VM_0_16_centos test_dir]$ ls -lR...

6,098 0       LINUX SHELL LS