Usually when we log in to a Linux system,. we may type some frequently used Linux commands such as pwd,ls, ps etc. All these commands are really simple but powerful with different options. But do you know what is the shortest command on Linux? The answer is w.
According to Linux manual, w will show who is logged on and what they are doing on the system. w displays information about the users currently on the machine, and their processes. The header shows, in this order, the current time, how l...

On Oct 2, Linus Torvalds proudly announced the release of Linux 4.8. But just days after the release, a bug was found in the kernel and Linus came out and apologized for this bug.
I'm really sorry I applied that last series from Andrew just before doing the 4.8 release, because they cause problems, and now it is in 4.8 (and that buggy crap is marked for stable too).
In particular, I just got this kernel BUG at ./include/linux/swap.h:276 and the end result was a dea...

In our day to day work. We may have many chances working on Linux/Unix systems. There are many things we may need to do, checking logs, navigating in directories, creating file or installing software. We may use many commands to complete the work, such as ls, mkdir, cd etc.
Below are my frequently used Linux commands or programs recently:
pwd : print working directory, sometimes I need to check which working directory I am in in order to know where to go next.
ls : List current directory files,...

Greg Kroah-Hartman has released long-term kernel 3.0.20 and stable kernel 3.2.5. Both contain just a single bug fix that allows PCIe power-saving technology ASPM (Active State Power Management)
to be used on systems with a BIOS that activates ASPM on some
components, but states in the FADT (Fixed ACPI Description Table)
consulted by Linux that ASPM is not supported.
According to Matthew Garrett, who developed the patch, the change can
reduce the power consumption of a Thinkpad X220 by 5&nbs...

After login to a Linux system, the command console will show up with a prompt label such as # or ~, a shell command can be typed after this prompt and the system can execute the command thereafter. All these operations are handled by shell.
Shell is a command language interpreter that executes commands read from the standard input device (keyboard) or from a file. There are different types of shells such as bash, ksh, csh etc. The most commonly used of them is bash and it's also the de...

In computing, C is a general-purpose programming language initially developed by Dennis Ritchie between 1969 and 1973 at Bell Labs Its design provides constructs that map efficiently to typical machine instructions, and therefore it found lasting use in applications that had formerly been coded in assembly language, most notably system software like the Unix computer operating system.To learn C, we need to read many C books and have many practices. Here we summarize a list of C books which may h...

A few that come to mind, some less known, some more:
xargs or parallel: run things in parallel, with lots of options
sed and awk: more well-known but still super useful for processing text files, and faster than Python or Ruby
m4: simple macro processor
screen: powerful terminal multiplexing and session persistence
yes: print a string a lot
cal: nice calendar
env: run a command (useful in scripts)
look: find English words (or lines in a file) beginning with a string
cut and paste and join: data...

Have you ever looked in your / directory, you’ll see a lot of
directories. Here we are presenting beginners guide to linux directory
structure explaining what they mean and what are the contents of these
directories.Screenshot of contents of root directory: /This
is called root partition. All files and directories start with root
partition. Write privileges under this directory are avaible with root
user only. Not to confuse it with root user’s home directory, know the
difference...

tmpfs is another confusing name in Linux kernel, its implementation is in mm/shmem.c, shmem has no relation to tmpfs at first glance although we know tmpfs is based on memory. We can understand why we use this name by seeing where this is used.
In a desktop Linux system, tmpfs is loaded usually:
% grep tmpfs /proc/mountsdevtmpfs /dev devtmpfs rw,seclabel,nosuid,relatime,size=1958956k,nr_inodes=489739,mode=755 0 0tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev,relatime 0 0tmpfs /run tmpfs rw,seclab...