When we install the program in the Ubuntu system, we often want to create and copy files in the USR directory, this folder in the Linux class system requires root permission to access, so with the normal mouse button menu operation is not valid, today share the use of commands in the terminal to create new, copy files.
Related commands:
CD path (enter a path, such as/usr/local/lib)
Cd.. (Return to previous folder)
Dir (displays all files under the current folder)
sudo command (get Super admin permission, need to enter password)
Common new, delete, copy commands:
mkdir Directory Name (new folder, folder in Linux system called "directory")
Touch file name (create an empty file)
RmDir Directory Name (delete an empty folder, the contents are not available in the folder)
RM-RF a non-empty directory name (delete a folder that contains files)
RM File name (delete multiple files)
CP file name (copy a file)
Cp-i (copy, when a file of the same name exists, output [yes/no] asks whether to execute)
Cp-f (Force copy file, if same name not asked)
Common decompression, installation program, file Update command: Deb format double-click to install
TAR-ZXVF *.tar.gz (extract tar.gz formatted files)
SH Path/x.sh (installs the SH format file, such as sudo sh/home/hp/downloads/*.sh)
sudo apt-get upgrade (update installed packages)
sudo apt-get update (update source)
If you want to know where the files are installed? You can go to the/usr/share/applications folder and take a look at it and create a shortcut on the desktop using the method mentioned earlier.
These are my usual commands, in fact, Linux commands abound, but with the Ubuntu GUI update, a lot of commands in the personal desktop has not been used, but only the command line server side still need, so I admire those maintenance server engineers, in addition, Want to have excellent programming technology, memory is really important, so you do not always stay up late, take care of your body.
Say Blog Park diary function, originally is private nature, moved to Diary of article home will not be public display, and can't move back ...
Common new and copy file commands under Ubuntu system