Quickly Generate Dummy Files Of Different Sizes From Linux Command Line

It can be useful to create sample blank or dummy files of various sizes for testing and other purposes. In Linux, there are different ways to do this from the command line but an easy one for this is to use the fallocate command. This command simply allocates disk space for files based on the size specified. The common syntax for this is : fallocate -l filesize filename The -l parameter is the input...

How To Create A Bootable USB Stick From Linux Command Line

What can be done using graphical tools in Linux can also be accomplished directly using the Terminal / Linux command line if needed. (Here is a primer on using basic Linux commands). To make a bootable USB disk directly from the command line : First, get the device listing of USB stick which needs to be made bootable by using lsblk : The device name (in this example – /dev/sdc) can be figured...

2 Ways To Recall And Run Previous Commands In Linux Mint / Ubuntu

recalling command using number
The Linux command prompt/shell records previously entered commands in the form of history. This is convenient because any of the previously used commands can be recalled and run again when needed. Now, to see a list of all previously used commands, type “history” at the command prompt. This will show a numbered list of all the commands with each number corresponding to the command next...