What do you want to save?
Add Code snippet
New code examples
-
Shell/Bash 2021-08-30 04:34:01
what is shell scripting
#!/bin/bash # Name: Check for domain name availability # linuxconfig.org # Please copy, share, redistribute and improve if [ "$#" == "0" ]; then echo "You need tu supply at least one argument!" exit 1 fi ... Add solution -
Shell/Bash 2021-08-30 04:08:02
uninstaall mongodb from centos7
1)Stop MongoDB. Stop the mongod process by issuing the following command: sudo service mongod stop 2)Remove Packages. Remove any MongoDB packages that you had previously installed. sudo yum erase $(rpm -qa | grep mongodb-org) 3)Remove Data Directorie... Add solution -
Shell/Bash 2021-08-30 03:08:02
how to expose docker api over tcp
## Use the command sudo systemctl edit docker.service ## to open an override file for docker.service in a text editor and ## add below lines(this is for testing purpose only, ##while PROD access or expose Docker api through tls or a proxy) $ sudo systemc... Add solution -
Shell/Bash 2021-08-30 00:31:01
terminal open current directory in finder
find . -type d | grep DIRNAME Add solution -
Shell/Bash 2021-08-30 00:05:02
bash grep only return first match
# Basic syntax: grep -m 1 "pattern" input_file.txt # Where -m is the maximum number of matching lines to return, i.e. stop # reading the file after m matches # Note, this is more efficient than piping to head because there you # always read the ... Add solution -
Shell/Bash 2021-08-30 00:01:02
linux kill all python processes
sudo pkill python sudo pgrep python Add solution