Blog

Latest Articles

Browse the latest tutorials, guides, and practical examples across Linux, DevOps, security, databases, and programming on GoLinuxCloud.

Explore the latest tutorials and guides across Linux, DevOps, programming, and more.

You can also browse content by category below:

  • Linux: Commands, administration, troubleshooting, and system operations
  • DevOps: CI/CD, Kubernetes, containers, and automation
  • Cloud: AWS, Azure, OpenStack, and hybrid cloud administration
  • Programming: Coding tutorials, scripting, and development concepts
  • Security: Ethical hacking, system security, and best practices
  • Databases: MySQL, MariaDB, PostgreSQL, and database management
  • Networking: Network setup, troubleshooting, and protocols
  • Storage: Disk management, file systems, and storage solutions
  • Tools: Useful tools and utilities for productivity

2298 articles

Blog illustration with latest articles, tutorials, guides, and how-to content across Linux and DevOps topics
programming

Python Progress Bar

Learn how to create a progress bar in Python using print(), carriage return, sys.stdout.flush(), tqdm, progressbar2, and alive-progress. See examples for terminal loops, file processing, downloads, asyncio, and common …

Deepak Prasad7 min read
programming

Print Variable in Python

Learn how to print a variable in Python using print(), f-strings, commas, str.format(), and % formatting. See examples for printing strings, numbers, multiple variables, text with variables, and avoiding common TypeError …

Deepak Prasad5 min read
programming

Python sorted() Function

Learn how Python sorted() works with examples. Understand the difference between sort() and sorted(), sort lists, tuples, strings, dictionaries, use key functions, reverse=True, lambda, and custom sorting.

Deepak Prasad5 min read
programming

Python struct Module

Learn how to use the Python struct module to pack and unpack binary data. See examples for struct.pack(), struct.unpack(), struct.calcsize(), byte order, format strings, pack_into(), unpack_from(), and common errors.

Bashir Alam7 min read
programming

Python try except

Learn how Python try except works with simple examples. See how to catch specific exceptions, handle multiple exceptions, use else and finally, raise exceptions, and avoid common mistakes.

Bashir Alam8 min read
programming

Python input() Function

Learn how Python input() works, why it returns a string, how to convert input to int or float, handle non-numeric values, validate user input, take multiple inputs, and use input with asyncio.

Bashir Alam5 min read
programming

Python UUID

Learn how to generate UUIDs in Python using the built-in uuid module. See examples of uuid4(), uuid1(), uuid3(), uuid5(), GUIDs, short UUIDs, UUID strings, hex values, and when to use each version.

Bashir Alam6 min read
programming

Sort List in Reverse Alphabetical Order in Python

Learn how to sort a Python list in reverse alphabetical order using sort(reverse=True) and sorted(reverse=True). Also see how to solve the short_names exercise and choose between in-place sorting and creating a new list.

Azka Iftikhar5 min read
programming

Python strip()

Learn how Python strip() works with examples. Remove leading and trailing whitespace, strip specific characters, compare strip(), lstrip(), and rstrip(), and avoid common mistakes with prefixes and suffixes.

Bashir Alam6 min read
linux

Remove Python 3.14 or 3.15 on Ubuntu Without Breaking system python3

Remove Python 3.14 or 3.15 on Ubuntu 22.04 and 24.04 safely: uninstall Deadsnakes packages, delete source altinstall files, clean pyenv versions and venvs, and keep Ubuntu system python3 working.

Omer Cakmak6 min read
programming

Simple Linear Regression in Python

Learn simple linear regression in Python using pandas, scikit-learn, and matplotlib. Train a model, make predictions, evaluate accuracy, plot the regression line, and save predictions to a CSV file.

Bashir Alam6 min read
programming

NumPy Shuffle Array

Learn how to shuffle a NumPy array using np.random.shuffle(), Generator.shuffle(), and permutation(). Also see how to shuffle two arrays or lists together in the same random order.

Azka Iftikhar5 min read
programming

Seaborn Scatter Plot

Learn how to create a Seaborn scatter plot using sns.scatterplot(). See examples with hue, style, size, palette, marker size, transparency, labels, legends, and regression lines.

Deepak Prasad6 min read
programming

Remove Key from Dictionary in Python

Learn how to remove a key from a Python dictionary using pop(), del, dictionary comprehension, and safe methods to avoid KeyError when the key may not exist.

Deepak Prasad6 min read
programming

Python zip() Function

Learn how the Python zip() function works with lists, tuples, dictionaries, and loops. See how to handle different lengths with strict=True and zip_longest().

Bashir Alam8 min read
programming

Python zipfile Module

Learn the Python zipfile module with examples. Create and append ZIP archives, list and read members, extract files safely, handle passwords on read, choose compression, use BytesIO, and rebuild archives without a …

Deepak Prasad7 min read
programming

Sort Dictionary by Key in Python

Learn how to sort a dictionary by key in Python using sorted(), dict(), lambda, itemgetter(), reverse=True, case-insensitive sorting, and nested dictionary examples.

Deepak Prasad7 min read
linux

How to undo rm in Linux? [100% Working]

Linux rm has no built-in undo and does not use Trash by default, but you can sometimes recover deleted files—stop writes to the disk first, then try backups, open file handles via /proc, carving tools like Foremost and …

Omer Cakmak20 min read
devops

Kubernetes DNS Troubleshooting: Fix CoreDNS, NXDOMAIN, SERVFAIL, ndots, and DNS Timeouts

We walk you through Kubernetes DNS failures with the CoreDNS and kube-dns checks we use in real incidents—NXDOMAIN, SERVFAIL, ndots, NetworkPolicy port 53, and external DNS—so you can copy the same commands on your …

Deepak Prasad20 min read
programming

Python Substring

Learn how to get and check substrings in Python using slicing, the in operator, find(), index(), count(), and replace(). See extraction before or after a character and common mistakes.

Bashir Alam5 min read
programming

Python super()

Learn how Python super() works with inheritance. See how to use super().__init__() in child classes, call parent methods, understand MRO, and avoid common multiple inheritance mistakes.

Bashir Alam6 min read
programming

Python Symmetric Difference

Learn symmetric difference in Python using set.symmetric_difference() and the ^ operator. See examples, difference vs symmetric difference, multiple sets, lists, tuples, and common mistakes.

Bashir Alam6 min read
programming

Python switch case

Learn how to write switch case logic in Python using match case, if-elif statements, and dictionary mapping. See Python switch statement examples, default cases, multiple cases, and when to use each approach.

Bashir Alam7 min read
programming

Python Ternary Operator

Learn how the Python ternary operator works using value_if_true if condition else value_if_false. See simple examples, nested ternary expressions, list comprehension usage, and common mistakes.

Bashir Alam6 min read
programming

Python Tree Data Structure

Learn tree data structure in Python with simple examples. Understand nodes, root, children, binary trees, binary search trees, DFS, BFS, inorder, preorder, and postorder traversal.

Deepak Prasad13 min read
programming

Sort Dictionary by Value in Python

Learn how to sort a dictionary by value in Python using sorted(), lambda, itemgetter(), reverse=True, and custom sorting. See examples for ascending order, descending order, duplicate values, and nested dictionaries.

Deepak Prasad6 min read
programming

Python Sort List

Learn how to sort a list in Python using list.sort() and sorted(). See examples for ascending order, descending order, strings, numbers, custom key functions, list of lists, tuples, dictionaries, None values, and common …

Bashir Alam6 min read
programming

Python Split String

Learn how to split a string in Python using str.split(). See examples for splitting by whitespace, comma, newline, multiple spaces, maxsplit, rsplit(), splitlines(), and regex delimiters.

Deepak Prasad5 min read
programming

Python startswith()

Learn how Python startswith() works with simple examples. Check if a string starts with a prefix, use start and end positions, match multiple prefixes with a tuple, and perform case-insensitive startswith checks.

Bashir Alam4 min read
programming

Python Set

Learn Python sets with simple examples. See how to create a set, add and remove items, check membership, remove duplicates, and use union, intersection, difference, symmetric difference, issubset, issuperset, and …

Deepak Prasad7 min read