I’ve begun learning Lua.
To find the length of a string:
string.len("shark")
5
To find the cosine:
math.cos
To convert a lowercase string to uppercase:
string.upper("dad")
DAD
I’ve begun learning Lua.
To find the length of a string:
string.len("shark")
5
To find the cosine:
math.cos
To convert a lowercase string to uppercase:
string.upper("dad")
DAD
For some reason, I found it difficult to find the answer as to how I could take an USB thumb drive, format it with the NTFS file system, and label it. All from the command line and on Linux. After Googling, Duck Duck Go-ing it, and searching with Qwant I remembered that I have a handy little program installed called tldr.
tldr mkfs.ntfs
One of the results was the following:
So first of all I needed to find the right device name for the thumb drive I had plugged in so I didn’t overwrite my 200 gigabyte home folder!
lsblk:
sdc 8:32 1 7.6G 0 disk
└─sdc1 8:33 1 7.6G 0 part
Now that I had the right device to write to, I could create a file system on it.
sudo mkfs.ntfs /dev/sdc1 -L "THE WALKING DEAD"
Bingo! That did the trick.