What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-29 06:24:01
ubuntu install php 8
# Ubuntu 20.04 # List existing PHP packages dpkg -l | grep php | tee packages.txt #Add ondrej/php PPA sudo add-apt-repository ppa:ondrej/php # Press enter when prompted. sudo apt-get update #Install PHP 8.0 with CLI sudo apt install php8.0-common php8.0... Add solution -
Shell/Bash 2021-08-29 05:20:01
Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied)
Method 1 ps aux | grep -i apt sudo kill -9 <process_id> Method 2 sudo lsof /var/lib/dpkg/lock sudo lsof /var/lib/apt/lists/lock sudo lsof /var/cache/apt/archives/lock sudo kill -9 <process_id> sudo rm /var/lib/apt/lists/lock sudo rm /var/c... Add solution -
Shell/Bash 2021-08-29 01:34:01
number of files in directory ubuntu
# To count files (even files without an extension) at the root of the current directory, use: ls -l | grep ^- | wc -l # To count files (even files without an extension) recursively from the root of the current directory, use: ls -lR | grep ^- | wc -l Add solution