How to Uninstall a .deb Installed With dpkg in Linux?
To uninstall a .deb installed package with dpkg, use the “sudo apt -remove
To uninstall a .deb installed package with dpkg, use the “sudo apt -remove
The .ts is the “Transparent Stream” acronym and is a type of video format. This is used to store videos on DVDs and stream them over the internet.
To set the manual date and time of the system, use the “date”, “timedatectl”, “hwclock”, and “ntpdate” commands and the “Date &Time” option via GUI.
The “LD_LIBRARY_PATH” environment variable searches the directories of the shared libraries. It can also be set in Linux using the “export” command.
In Linux, the “$?” is the special variable that stores the execution status of the last command in terms of “1”(Failure) and “0” (successful)
The sshd Logs are stored in the “/var/log/auth.log” file. These log details can be displayed using the “grep”, “lastlog”, and the “journalctl” commands.
The Reverse DNS Lookup finds the hostname associated with the specified IP address. It can be found in Linux by dig, host, and nslookup commands.
In Linux and its distributions, the user can easily create the home directory for an existing user with the help of the “mkdirhome_helper” command.
Learn about the key differences between PPP0 and WWAN0 interfaces on Linux systems and then decide the best option that suits you.
The best office suites in line for 2023 are LibreOffice, Google Docs, WPS Office, Only Office, and Apache Office. Read this post for more details on these
To sync the time with the NTP server in Linux, use the “ntp”, or “chrony” commands. It synchronizes the computer with the NTP server.
The “lrwxrwxrwx” permission specifies that the symbolic link to another file has read, write, and execution permissions to all its users and groups.
In Linux, use the WPA_Supplicant to connect with the Wi-Fi networks. Also, establish connections with hidden, insecure networks and WEP routers.
Run level defines the operating system’s initialization behavior in Unix. This post will help readers better understand the run-level in Linux.
macOS is not based on Linux; both are the Unix-like operating system but share some similarities. There is quite a difference between macOS and Linux features.
The “CTRL+C” terminates the execution of the command while the “CTRL+Z” puts the command in the background. Read this post for more details on it.
A terminal is a Command Line Interface to accomplish tasks quickly and effectively. Multiple ways can be used to open and then use the terminal in Linux.
Master the art of file copying with rsync. Get a comprehensive guide on using rsync to transfer files quickly and efficiently.
Postfix is the mail transfer agent in Ubuntu that stores all records of the emails in the log file located under the directory “/var/log/mail.log”.
The rm -rf command is used to forcibly remove the files and directories recursively. So you need to be sure of your decision before deleting your data.
Experience a sleek and intuitive desktop environment with Pantheon. Discover its unique features and user-friendly interface.
Discover the amazing capabilities of Linux and learn how to perform 10 cool tasks with this powerful open-source operating system. Read on to find out more!
The traffic can be displayed on the terminal on Linux using various command line utilities, i.e., ifconfig, link show, netstat, bmon, and nload.
In Linux, the “sort” command line utility is used with the “-k” flag to perform the sorting operation based on the third column.
To install, remove, and upgrade packages on CentOS, utilize the “yum” package manager by specifying the package name in the terminal.
By default, NTPD uses UDP port 123 for NTP servers and 1023 port for NTP clients. These ports need to open to allow incoming NTP traffic.
To show the DOSBox in full-screen mode, press the “Ctrl+F10” to lock the mouse and then “Left Alt+Enter” or make changes in the “dosbox-0.74-03.conf” File.
Yes, the “z” option with rsync speeds up the backup in specific scenarios depending on the factors like size, types of files, network, and CPU performance.
The “i686” packages run on processors having 32-bit compatibility while “x86_64” runs on processors having both 64-bit and 32-bit based compatibility.
To view all UUIDs for all available disks on the Linux operating system, use the “blkid”, “lsblk”, “ls”, “hwinfo”, “udevadm”, “tune2fs”, “dumpe2fs” commands.
The “sudo rm -rf /*” command recursively deletes all files and directories from the root directory. It deletes all the files on the computer permanently.
In Linux, to know the number of CPU cores in a system considers the “proc/cpuinfo” file’s output or the “nproc”, “top”, “lscpu”, or “hwinfo” utility.
In Linux, the user can use the “nmap”, “netstat”, “netcat”, “/dev/tcp” or “lsof” tools as an alternative besides the “telnet” tool.
To exit from the tmux window, press the keyboard shortcut key “Ctrl+A” or “Ctrl+B” and then “D” or use the “exit”, “tmux detach” or “tmux kill-session” command.
To switch between multiple versions of Java, list the available versions and switch between them using the “sudo update-java-alternatives –set
To check the currently used DNS server, consider the “resolv.conf” file or built-in tools such as ”dig”, and “nslookup” or use the “Network” settings (GUI).
To trim the leading and trailing whitespaces from each line in the output of a file/script, use the Linux pre-installed “sed” and “awk” command line tools.
In Linux, the pre-installed “xrandr” command offers the “newmode” and the “addmode” flags to set the custom resolution of the system monitor.
To convert epoch timestamp to human-readable format use the “date” command, “awk” having starftime format, and the “localtime()” with the “echo” command.
To color diff output use the “diff –color” command for the newer version of “diff” and the “colordiff” command line tool for the older versions.
In Ubuntu, the “clean”, “autoclean”, and “autoremove” commands clean up the system cache, additional dependencies, and outdated versions of packages.
To add new lines, use the “-e(backspace interpreter)” and “$(bash variable)” with the “echo” command. An “echo” tool can also be used multiple times to do this.
In Linux and its distributions, the “curl” can be installed via default package managers i.e “apt” (Ubuntu/Debian), “yum” (CentOS/RHEL), and “dnf” (Fedora).
To generate a strong password, use the “urandom”, “makepasswd”, “gpg”, “apg”, “pwgen”, and “openssl rand” commands. It can also be done using the “Perl” script.
The “cd -” and “cd ~-” jump into the recently used directory but the “cd -” also prints that directory’s absolute path in the terminal.
To copy a directory and its content to the new location, use the “cp” with the “R” flag, “rsync,” and ”tar” commands, or a GUI method.
Use the “for” and “while” loops in the shell script to read the file content line by line. Both these loops provide simple syntax to perform this task easily.
To run a shell script in the background, use the “&(ampersand)” bash control operator and the built-in “nohup” command line tool.
The error is caused when the user tries to change the hostname, which is not found in the /etc/hosts file, and it is fixed by adding the hostname to that file.
Different errors can be made while editing a text file using nano; use the “ALT+U” key to undo the operations and “CTRL+E” to redo the changes made.
In Linux, the error “cp: omitting directory” represents that the “cp” command expects a file as the source, not a directory.
In Linux, to check the hard disk performance of the system, the user can consider the utilities such as “hdparm”, “dd ”, “iostat”, or the “Disks” tool.
In Linux, To find the process ID of the process using the specific port, use the “netstat”, “ss”, “losf”, or the “fuser” utility.
In Linux, the best alternatives to photoshop software are “Gimp”, “Krita”, and “Inkscape”, which give similar functionalities.
To check the RAM size in the Linux, utilize the “/proc/meminfo file”, “free”, “top”, “vmstat”, “dmidecode”, “lshw”, or “hwinfo” utilities
Linux offers the “systemctl” and “service” commands to restart the “SSH” service instantly. It can also be restarted by accessing the “/etc/init.d” directory.
In Linux, use the default package managers of Linux distribution, i.e., “apt(Ubuntu/Debian)” and “dnf(Fedora/CentOS/RHEL)” to completely remove the Virtualbox.
In Linux, the “find”, “locate”, and “tree” commands can be utilized to find the file from the current or the particular directory.
To change an IP address, utilize the “ip”, “ifconfig”, and the “nmcli” command line tools or the “Network” window in the GUI method.
In Linux, the “for” loop executes the block of statements repeatedly for every item in a list. It offers two types of syntax, i.e., “generalized” and “one line”.
To find and kill the zombie process on Linux, list down the zombie process, and send the SIGCHLD signal to its parent process.
The find -mtime +1 only returns files older than two days because it only returns the files modified in the last two or less than two days.
To export a GPG private and public key, use the “gpg –export-secret-key -a
To add a DNS server via resolv.conf configuration file, add a nameserver directive followed by the IP address of the DNS server.
To step into, step over, and step out with GDB, use the “step”, “next”, and “finish” commands. These GDB commands quickly identify and fix bugs in the program.
To install and run the TFTP server, execute the “sudo apt install tftpd-hpa” command and configure the “tftpd-hpa” configuration file.
Linux and its distributions offer the pre-installed “id”, “echo”, “lslogin”, and “getent” command line utilities for finding user ID from the terminal.
To give full permission to a folder and its subfolders, use the “chmod 777
To reduce the file size of the scanned PDF, use the command line utilities ghostscript (gs), and “ps2pdf” or utilize the PDF online compression tool.
The binary files in Linux are analyzed through the file, ldd, hexdump, strings, readelf, objdump, strace, ltrace, and xxd utilities.