Skip to content

Programming Articles

  • HOME
  • Python
  • JavaScript
  • C/C++
  • Java
  • Terms & Conditions and Privacy Policy
  • About US
Main Menu

Linux

Linux / Ubuntu

How to enable or disable services in Ubuntu?

There are services that can be enabled/disabled using the GUI (like the startup application) or the terminal. For the Terminal you have several options. First, open a terminal (Type “terminal” in the …

How to enable or disable services in Ubuntu? Learn More
Linux / Ubuntu

Error message “sudo: unable to resolve host (none)”

Sample query: When I run sudo the terminal is stuck for a few seconds and then outputs an error message. My terminal looks like this: What can I do to solve it? …

Error message “sudo: unable to resolve host (none)” Learn More
Bash / Docker / Linux

How to get bash or ssh into a running container in background mode?

Sample query: I want to ssh or bash into a running docker container. Please, see example: Now I want to get something like this (go into the running container): $ …

How to get bash or ssh into a running container in background mode? Learn More
Linux / Ubuntu

How to upgrade a specific package using apt-get?

You just need to do apt-get install –only-upgrade <packagename>. This will upgrade only that single package, and only if it is installed. If you wish to install the package if it …

How to upgrade a specific package using apt-get? Learn More
Linux

How to list, add, modify, and delete users using terminal?

Just press Ctrl+Alt+T on your keyboard to open Terminal. When it opens, run the command(s) below: OR You can also use awk: How to list, add, modify, and delete users using terminal? …

How to list, add, modify, and delete users using terminal? Learn More
Cron / Linux

Where is the cron/crontab log?

On a default installation the cron jobs get logged to You can see just cron jobs in that logfile by running If you haven’t reconfigured anything,the entries will be in …

Where is the cron/crontab log? Learn More
Docker / Linux

How to use docker without sudo?

In this article, we’ll learn how to use docker without sudo. If you want short answers, jump to the next answer below. Good news: the new docker (version 19.03 (currently …

How to use docker without sudo? Learn More
Command Line Interface- CLI / Linux

How to determine the total size of a directory from the terminal?

The command du “summarizes disk usage of each FILE, recursively for directories,” e.g., -h is to get the numbers “human readable”, e.g. get 140M instead of 143260 (size in KBytes) -s is for summary (otherwise you’ll get not …

How to determine the total size of a directory from the terminal? Learn More
Linux / Ubuntu

Unable to lock the administration directory (/var/lib/dpkg/) is another process using it?

Here are multiple solutions to resolve this issue, but if the first 2 don’t work out, jump to the 5th answer. Remove your /var/lib/dpkg/lock file and force package reconfiguration. It should work …

Unable to lock the administration directory (/var/lib/dpkg/) is another process using it? Learn More
Command Line Interface- CLI / Linux

How to save the terminal output to a file?

In this article, we’ll learn how to save the output from the terminal to a file. The first question is, is it possible? Yes it is possible, just redirect the …

How to save the terminal output to a file? Learn More
Linux

“The following packages have been kept back:” How to solve it in Linux?

According to an article on debian-administration.org, If the dependencies have changed on one of the packages you have installed so that a new package must be installed to perform the upgrade …

“The following packages have been kept back:” How to solve it in Linux? Learn More
Linux

How to install a .deb file using the command line?

Packages are manually installed via the dpkg command (Debian Package Management System). dpkg is the backend to commands like apt-get and aptitude, which in turn are the backend for GUI install apps like the Software Center and Synaptic. Something …

How to install a .deb file using the command line? Learn More
Linux

How to remove PPAs in Linux?

There are a number of options: 1). Use the –remove flag, similar to how the PPA was added: 2). You can also remove PPAs by deleting the .list files from /etc/apt/sources.list.d directory. 3). As a safer …

How to remove PPAs in Linux? Learn More
Linux

How to unzip a zip file from the Terminal?

A zip file can be unzipped using the unzip command from the terminal. If the unzip command isn’t already installed on your system, then run: After installing the unzip utility, if you …

How to unzip a zip file from the Terminal? Learn More
Linux

How to list all installed packages in Linux?

To list all packages intentionally installed (not as dependencies) by apt commands, run the following : This provides a reverse time based view, with older commands listed first: Installation data also showing …

How to list all installed packages in Linux? Learn More
Linux

How to copy a folder with files to another folder in Linux?

The option you’re looking for is -R. If destination doesn’t exist, it will be created. -R means copy directories recursively. You can also use -r since it’s case-insensitive. To copy everything inside the source folder (symlinks, hidden files) without …

How to copy a folder with files to another folder in Linux? Learn More
Bash / Linux

How to merge multiple PDF files into one PDF in Linux?

Considering that pdfunite is part of poppler it has a higher chance to be installed, usage is also simpler than pdftk: Just make sure you remember to provide out.pdf, or else it will overwrite the last …

How to merge multiple PDF files into one PDF in Linux? Learn More

Posts navigation

1 2 3 Next

Featured Posts

From UNIX to Linux – History of Linux

21st November 202010th September 2022

Best themes for Ubuntu: Make Ubuntu Beautiful

20th October 202010th September 2022

Strings in Python

12th September 202010th September 2022

Is Python hard to learn? Top best learning resources

18th April 202010th September 2022

Recent posts

  • How to pad a string with zeroes to the left?
  • What is the difference between process and thread?
  • How to generate a random alpha-numeric string in Java?
  • How to auto-resize an image to fit a ‘div’ container?
  • How to get a Docker container’s IP address from the host?
  • How to display a JavaScript object?
Copyright © 2023 Programming Articles.
Powered by WordPress and HitMag.