Common commands for Linux (Linux Mint)

Source: Internet
Author: User
Tags nameserver linux mint

View process

PS Top (Task Manager)

Kill process

Kill PID (PID number requires its own input, can be viewed by the viewing process)

Delete lock file

sudo rm/var/lib/apt/lists/lock

deleting files

sudo rm-r filename (-R down recursion, no matter how many levels, are removed,-f forcibly removed, not prompted)

Uninstalling software

sudo apt-get autoremove--purge softname (softname self-input)

Find File path

Whereis filename (filename input)

Find/-name filename (filename input)

View Current Process

Pwd

C + + file compilation and operation

g++ test.cpp-0 Test

./test

Commands for MV Movement

MV 12 1234 (rename file 12 to 1234)

mv/a/b/c (move the/a folder to/C)

Commands for CP replication

Cp/home/work/home/temp (Copy the work file to temp)

Unzip, compress files

Zip Xx.zip compression

Unzip Xx.zip Decompression

Tar zcvf xx.tar.gz Compression

Tar zxvf xx.tar.gz Decompression

About VIM

Vim's configuration file path/ETC/VIM/VIMRC

Vim saves files with no permissions

: w!sudo tee% or: w!sudo tee% >/dev/null

Vim to find the word/word (Word to find the word)

VIMRC Configuring C + +

1 Syntax on2Set shiftwidth=43Set tabstop=44Set softtabstop=45 Set Autoindent6 Set Smartindent7 Set Cursorline8 Set Showmatch9 Set numberTen Set Cindent OneInoremap (() <ESC>I A   -Map<f5>: Call CR () <CR> -func!CR () theExec"W" -Exec"!g++-w-g%-O%<" -Exec"! ./%<" - Endfunc +Map<f3>: Call Setmodel () <CR> - func Setmodel () +Let L =0 ALet L = l +1| Call Setline (L,'#include <bits/stdc++.h>') atLet L = l +1| Call Setline (L,"') -Let L = l +1| Call Setline (L,'using namespace std;') -Let L = l +1| Call Setline (L,"') -Let L = l +1| Call Setline (L,'typedef long long LL;') -Let L = l +1| Call Setline (L,"') -Let L = l +1| Call Setline (L,'int main () {') inLet L = l +1| Call Setline (L,'//freopen ("In.txt", "R", stdin);') -Let L = l +1| Call Setline (L,'//freopen ("OUT.txt," W ", stdout");') toLet L = l +1| Call Setline (L,'ios_base::sync_with_stdio (0); Cin.ti e ();') +Let L = l +1| Call Setline (L,"') -Let L = l +1| Call Setline (L,'return 0;') theLet L = l +1| Call Setline (L,'}') *Exec"8" $Endfunc

IP Easy Setup

  1 ifconfig 202.199. 117.12 255.255. 254.0                            2 202.199. 117.254  3 Echo " nameserver 202.96.64.68 " >/etc/resolv.conf  4echo"nameserver 8.8.8.8  " >>/etc/resolv.conf

Common commands for Linux (Linux Mint)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.