. commands for editing files with nano and vi and displaying text files with cat and more
Nano is a small, free, and friendly editor. I think nano is more suitable for beginners of Linux. Now we only learn how to edit a file and save it.
Nano file name
If the file name you wrote already exists, open and edit it; otherw
. you can use a USB flash drive to start the system and install it in the BIOS.
2. formal installation
2.1. Select USB Flash Drive for BIOS boot.
2.2. start the system boot
2.3. disk partition
Use fdisk or cfdisk disk to partition a disk.
Here I personally partition the disk as follows:
Device size mount point
/Dev/sda1 30G NFTS
/Dev/sda2 300 M/boot
/Dev/sda3 60G/
/Dev/sda5 2G swap
/Dev/sda6 60G/home
The usage of fdisk is as follows, which is excerpted from the official documentation for the use
default configuration file:sudo nano/etc/apache2/apache2.conf. . . LogLevel warn ...As can see, by default, we had Apache configured to log messages with a priority of "warn" and above. We'll learn where Apache logs its messages in the following section.Where does Apache Keep its Logs?Apache can is told where to place its logs using server-wide logging specifications. You can also configure logging individually for each separate virtual host.Server-w
Indexes MultiViewsAllowOverride NoneRequire all granted
Then change the directory permissionssudo chmod 775/etc/apache3/users/zhuzi.confYou also need to configure httpd.confsudo mvim/etc/apache2/httpd.confFind a few blocks with Vim's find command to remove the previous #LoadModule authz_core_module libexec/apache2/mod_authz_core.soloadmodule authz_host_module libexec/apache2/mod_ Authz_host.soloadmodule Userdir_module libexec/apache2/mod_userdir.soinclude/private/etc/apache2/extra/ H
profile of the shell, i.e, and we edit the.profilefile to put some enviroment variables, in order to upset Equa Llyvimandemacsuser We'll use a text editor Callednano Nano ~/.profile And we add, at the end, the following Export java_home=$ (readlink-f/usr/bin/java | sed "S:bin/java::") export Hadoop_install=/usr/local/hadoopexport HADOOP _home= $HADOOP _installexport path= $PATH: $HADOOP _install/binexport path= $PATH: $HADOOP _install/sbinexport hado
the article class. "Article. All" can be abbreviated as "all"
Nesting: cut by CD. If you are confused, you can use it to view the current class. I think it would be better to change the name to "PWD.
Ls: view some information, LS-h to view help, LS-m to view instance methods, LS-m to view class methods, and LS-P to view private methods.
Show-Doc array # in_groups_of: view the document.
Show-method-L Array # in_groups_of: view the source code of the method, and-l displays the row number.
Ed
discussed.
Nano-materials have singular structures and special functions, which greatly change the electrical, mechanical, magnetic, and optical properties of the materials.This paper reviews the preparation and nano-sintering methods of nano-materials, introduces the latest research trend of nano-materials science, p
Modify the ubuntu Default Editor to vim. In general, the default editor under the ubuntu terminal is nano. You can directly edit a file to enable nano by default. For example, when "crontab-e" is input, the nano editor is opened by default. If anyone familiar with VIM wants the default editor to use vim, we need to modify the default editor of ubuntu. You can mod
indicates recursion, and 755 indicates the permissions of each user.
Change file owner
Chown parameter User: group file
For example, change the owner of all files in the driver directory to the root user.
Chown-R root: wheel/System/Library/Extensions
The R parameter indicates recursive operation.
Fix file permissions in the entire system
Diskutil repairpermissions/
Strictly speaking, this is not a unix Command, but an osx software. Remember to modify or add the driver and execute it once.
Te
a text editor. You can also find a lot of jokes about them on the Internet:Vim vs Emacs>Emacs is a cross-platform software that has both a graphical interface and a command-line interface. It also has a lot of features and, more importantly, expandable!Like Vim, Emacs also needs to go through a steep learning path. But once you have mastered it, you can fully appreciate its power, EMACS can handle almost any type of text file, its interface can be customized to suit your workflow, it also suppo
card.
SIM card Type
Glory Magic a dual card slot design, dual card slot support are Nano-sim cards, also on the card slots 1 and 2 are the smallest size of the Mini card (Nano SIM card).
Nano-sim card is commonly known as Mini card, is a small size of the SIM card, mobile phone card before the need to prepare a Nano
Tags: nts virtual directory for net ble any min charset Download the system various dependencies Nano/etc/apt/sources.list Using Apt-get to install packages in Debian often prompts you to insert Netinst discs: Media change:please Insert the disc labeled Comment out the following line Deb Cdrom:[debian gnu/linux 8.2.0 _jessie_-official AMD64 CD Binary-1 20150$ Apt-get Update Apt-get Install python-setuptools python-dev python-pip python-virtualenv r
/gshadowFile operationsVIPW = = NANO/ETC/PASSWD (Vi==nano)VIGR = = Nano/etc/groupPwck | GRPCK Checking user | Group file formatUser Management CommandsUser created:useradd [Options] name creation User (AddUser-useradd)-U Create user-specified UID-O with-u option, no UID uniqueness checked-G create user to specified group-C Create a user and describe-D create user
they value the choice of a text editor. You can also find a lot of jokes about them on the Internet:Vim vs Emacs>Emacs is a cross-platform software that has both a graphical interface and a command-line interface. It also has a lot of features and, more importantly, expandable!Like Vim, Emacs also needs to go through a steep learning path. But once you have mastered it, you can fully appreciate its power, EMACS can handle almost any type of text file, its interface can be customized to suit you
Warm tips:
1, OPPO R9 adopt and or Cato design, the slot is located on the right side of the fuselage, take out the card slot need to use the box with the Kari out, before installing SIM card.
2. The OPPO R9 is designed with a single card slot dual SIM card, two can be inserted into the Nano (mini card), which is consistent with R7 Plus, while R7 and r7s are micro SIM card +nano SIM card combinatio
Newly Installed XUbuntu10.10. When you open the terminal window and run the command, an error is reported (such as running clear or nano). The following error occurs: erropeningterminal: unknown due to a problem with the TERM definition, therefore, execute exportTERM = xterm and then use nano to edit the configuration file sudonano/etc/environment and add an exportTERM = xterm.
In the newly installed XUbun
TNS-01106: ListenerusinglistenernameLISTENERhasalreadybeenstarted then # usrliboraclexeapporacleproduct10.
TNS-01106: Listener using listener name LISTENER has already been started then #/usr/lib/oracle/xe/app/oracle/product/10.
1. Install the rpm package
Nano/v. sh
Copy the following content
#! /Bin/bash
Rpm-Uvh compat-db-4.2.52-5.1.i386.rpm
Rpm-Uvh compat-libstdc ++-33-3.2.3-61.i386.rpm
Rpm-Uvh make-3.81-3.el5.i386.rpm
Rpm-Uvh setarch-2.0-1.1.i
you want to automatically detect and display hardware. Select Yes, and then you will wait for a period of time to receive the automatically detected configuration. After that, close the window you opened and the program running on the desktop, and press Ctrl-alt-backspace to restart the desktop environment. You will be asked to log on to the gnome page again, hoping all problems will be solved. If not, try the next method.
[Edit]
Unrecognized display type
Open/etc/X11/Xorg. conf in the familiar
vs Emacs>Emacs is a cross-platform software with graphical interfaces and command line interfaces. It also has many features. More importantly, it is scalable!Like Vim, Emacs also needs to go through a steep learning path. But once you have mastered it, you will be able to fully understand its power. Emacs can process almost all types of text files, and its interface can be customized to adapt to your workflow, it also supports macro records and shortcuts. The unique feature of Emacs is that it
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.