Lists Lists are a data structure in Python that is mutable and each element of a list is referred to as an item, and are defined as comma delimited values between square brackets [ ]. Example: sea_creatures = [‘shark’, ‘cuttlefish’, ‘squid’, ‘mantis shrimp’, ‘anemone’] Lists can be compared to ArrayLists in other programming languages, and […]
0 CommentsAmazon Elastic Compute Cloud(Amazon EC2) is a web service that provides resizable compute capacity int he cloud. Amazon EC2 reduces the time required to obtain and boot new server instances to minutes, allowing you to quickly scale capacity, both up and down, as your computing requirements change. EC2 Options On Demand – Allows you to […]
0 CommentsHard Link vs Soft Link – a hard link is a file linked directly to an inode(a data structure on a file system that stores all the information about a file except its name and its actual data), while a soft/symbolic link is a link to another name in the file system. Deleting/renaming/moving the original […]
0 CommentsWe can read from files using the cat command and the output is written to STDOUT. We can also use a pipe and redirect output elsewhere [glen.knight@expert-syn-srv-1 t1]$ cat f1 hello We can count the number of lines in a file using the command wc -l [glen.knight@expert-syn-srv-1 t1]$ wc -l /etc/services 11176 /etc/services We can […]
0 CommentsWelcome to KnightGlen.com! Here you will find some of my thoughts laid out regarding multiple topics. It will be primarily focused on Tech and the different projects I’ve worked on. Sit tight and enjoy the ride!
0 Comments