Git view local branch
                            

git branch

class:Git views:160

Git clone remote repository, rename
                            

git clone https://github.com/cmdhelp/test test_react

class:Git views:123

MongoDB queries data for a field that is not empty
                            

db.neeq2008.find({"name":{"$ne":null}})

class:MongoDB views:104

Mysql create table
                            

use db_name; CREATE TABLE `tb`( `id` INT UNSIGNED AUTO_INCREMENT, `title` VARCHAR(100) NOT NULL, `author` VARCHAR(40) NOT NULL, `date` DATE, PRIMARY KEY ( `id` ) )ENGINE=InnoDB DEFAULT CHARSET=utf8;

class:Mysql views:109

Linux move files or folders
                            

mv -f -v test.zip test

class:Linux views:115

Mysql data table rename
                            

alter table tb rename tb1;

class:Mysql views:111

Mysql delete database and delete table
                            

drop database db_name; drop table table_name;

class:Mysql views:101

Linux delete empty directories
                            

rmdir -pv /root/newdir2/newdir3

class:Linux views:109

Linux searches for files ending in'.d'
                            

find /lib/dracut/ -name \*.d

class:Linux views:114

MongoDB batch modify values
                            

db.getCollection('rule').update({"key":".$"},{$set:{"key":"\\\\.$"}},false, true)

class:MongoDB views:135

Linux switch directory
                            

cd /home

class:Linux views:110

MongoDB deletes a field in the table
                            

db.cninfo2006.update({"fieldname":{$exists: true} },{$unset:{"fieldname":1}},false,true);

class:MongoDB views:110

Mysql export a table
                            

mysqldump -h localhost -u root -p mydb mytable>e:\MySQL\mytable.sql

class:Mysql views:86

Mysql delete a column
                            

ALTER TABLE tb1 DROP COLUMN title;

class:Mysql views:96

Linux unzip the zip file
                            

unzip -o -p test.zip

class:Linux views:85

Docker closes the container
                            

docker stop containerName/containerId

class:Docker views:115

MongoDB adds default values in batches
                            

db.neeq2006.update({}, {$set:{"name":""}}, false, true)

class:MongoDB views:94

This platform is gradually under construction, more development orders are gradually included, any questions or Suggestions can be Contact Us