List file by date
Answer:
When you directory contains lot of file, it is better to list them and sort by date
E.g.
# ls -lrt
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
List file by date
Answer:
When you directory contains lot of file, it is better to list them and sort by date
E.g.
# ls -lrt
Search the manual pages's description
Answer:
Every manual page has a short description, apropos searches the descriptions for instances of keyword.
# apropos gunzip
gunzip (1) - compress or expand files
You can also use the man command for this purpose.
Create an empty file in Linux
Answer:
Besides using the touch command, any easy tricks is to use the > redirection, e.g.
# > test.txt
Easy enough?
Find out physcial memory size in Linux
Answer:
Type of following command in shell
# grep MemTotal /proc/meminfo
MemTotal: 1058116 kB
How to remove BOM from UTF-8 using sed?
Answer:
# sed -e '1s/^\xef\xbb\xbf//' text.txt