Generate UUID in Linux
Answer:
You can use the uuidgen tool.
E.g.
# uuidgen
6c642ca4-74b4-4090-bacd-2be619ab3c12
Linux Ask! is a Q & A web site specific for Linux related questions. Questions are collected, answered and audited by experienced Linux users.
Generate UUID in Linux
Answer:
You can use the uuidgen tool.
E.g.
# uuidgen
6c642ca4-74b4-4090-bacd-2be619ab3c12
Create a temp file in Linux
Answer:
To create a temp file in Linux, you can use the mktemp command
E.g.
# mktemp foo.XXXXXXXXXXX
foo.aAIYdsa5027
mktemp will replace XXXXX... by random characters and create that temp file for you.
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
Give line numbers to a text file
Answer:
To add line numbers to a text file, you can use the nl command.
# nl input.txt
Parallel downloader in Linux
Answer:
wget is perhaps the most popular downloader (command) in Linux, but it cannot establish more than 1 connection to the server for max. speed.
Axel is a lightweight download accelerator for Linux that solve the problem.
To install under Ubuntu:
# sudo apt-get install axel
To download a file by using 10 connections
# axel -n 10 http://www.example.com/file.gz
That's very cool!