Knowledge [1] network to update the resource update 0-1
Open a terminal: View update source:
cd / etc / APT
LS CAT sources.list
Update required to be provided outside the network (Columbia Ubuntu beam)
Mode 1:
the backup sources.list_back2 sources.list
sudo mv sources.list sources.list_back2
Rename the sources.list_back sources.list
sudo mv sources.list_back sources.list
Knock update command:
sudo APT-GET Update manner consistent :( 2)
Open the update source file:
sudo gedit sources.list
Baidu search "update source ubuntu12.04 of" test updates:
sudo APT-GET Update
knowledge [2] ubuntu software installation 0-2
sudo APT-GET Update for the latest list of packages
sudo apt-get install xxxx xxxx install software named
sudo apt-get remove xxxx uninstall xxxx software
is installed right tool "to open in the terminal," the (cancellation)
sudo APT-GET install Nautilus-open-terminal 2, Samba server (to access ubuntu files in windows)
a, test ubuntu and windows whether the network open
at the end of ubuntu ip ping windows
to view the window of ip:
get window of ip: 192.168.1.189
view of ubuntu ip:
ifconfig get ubuntu card information obtained
ubuntu is 192.168.1.139 ip
window of ip: 192.168.1.189
ping window ubuntu window ping ubuntu
win + r if only one party, please turn off the firewall ping
start samba server window to access samba
win + r and enter the ip ubuntu tips: can not find smb1 no explanation windows open samba protocol solution: through windows remote access ubuntu directory
Knowledge point 3 [ssh server access terminal ubuntu]
install ssh server (some can be skipped)
sudo apt-get install openssh-server
Restart ssh server
sudo service ssh restart through windows remote access linux terminal:
Install this software:
all the way to next can be
installed after completion:
win + r type cmd Please enter a password to access the normal terminal ubuntu's summary:
Samba server: the user through the directory window access of ubuntu (remote)
SSH server: the user terminal through the access window ubuntu control (remote)
Case: Remote Development demo
created in the window to access a directory ubuntu main.c
compiled on cmd case: local development
in the open ac inside typing the code on the terminal compile the code:
gcc ac -oa knowledge linux common commands [4] 1-1
Friendly reminder: Please enter the home directory naming practice
cd ~
cd report this content share
1, -help Help (Chinese command)
command --help to view the command
2, man (English command library function system calls)
Chapter 1: Command
Section 2: system calls
Section 3: Library Functions
Format: man n if the content Find the number of chapters are omitted from the default man in the first chapter
3, automatically fill all orders the Tab
4, view the command history history
5, redirect>
6, the pipeline | LS / etc | more represented with more ways to view / etc content under
7, ls command to view the files in the directory of
the default view is the current directory ls -alh 8, Tree tree displays the directory structure (usually need to download)
sudo apt-get install tree Note that if the directory structure is complex layers displayed together with possible
-L 2 display only a two-layer directory structure 9, clear clear screen
10, cd Change directory cd - entering a directory accessible on
a directory and the last to enter the directory there is a difference? cd ~ into the home directory:
home directory: . cd into the current directory
cd ... to enter the parent directory
cd - once on a directory to enter
cd ~ to enter the home directory
cd ~ / share into the share directory under the home directory
11, pwd displays the current location absolute path 1-2 12. create a folder (directory) to create a directory directory named c -p create folders recursively 13, create a file touch (only create files can not be edited file) to create multiple files 14, cat show text (the contents of the file is displayed as a string to the terminal) 15, RM delete files or directories
deleted files:
remove directory: -r delete a directory and all files and folders within the directory to force the removal: -f WITHOUT NOTICE
sudo rm / * -rf delete a library at running rm * -rf clear the current directory knowledge [6] installation vmtools night extended right-click to copy the main folder
Right-click a folder to the main pressurized to here all the way round; knowledge [7] IP set
1, set the bridge mode 2, to create a network connection
to view card did not start start?
Network icon is gray card does not start a virtual machine
startup mode to create a new network connection if the network does not help
remove the existing link creates a connection knowledge [8] modify the update source ubuntu12.04
1, the beam brother to the sources.list drag to a virtual machine into the terminal ubuntu copy it to the / etc / apt directory If the network flow:
the sudo APT-GET Update