Test group Permissions SgidCreate kaifadata directory, allow group users to create their own files under the directory, allow other users to access and edit, do not allow deletion1. Creation of three users Li Wang Zhang[Email protected] ~]# Useradd Li[Email protected] ~]# Useradd Wang[Email protected] ~]# Useradd Zhang2. Create a group Kaifa[Email protected] ~]# Groupadd Kaifa3. Add user to Kaifa Group[Emai
teacher):
Input command:%! sudo tee% >/dev/null
Follow the instructions to enter sudo permissions password
Enter "l" (load File)
Enter : Q command to exit
Instructions for the "%! sudo tee% >/dev/null" command are as follows:% #VI/vim edited file contents! #管道sudo #以root权限操作Tee # outputs the standard input (that is, the currently edited file content through the pipeline) to the standard output, while writing to the specified file ( that is, Vi/vim the currently
This time I'll explain how to better edit Java files in vim.
Author: camry.wu@gmail.com
1. Javabrowser
When editing a class file, the class resource tree is a useful thing to make the class members, methods, and so on very intuitive
Show it. Vim can also be implemented as if VC, JBuilder, such as the class resource tree, of course, than
It would be easier, but it would be easy enough. This is accomplished
After reading step 2, you can operate the HSSFWorkbook class in the same way as in the first tutorial. One rule that must be followed is that if you want to edit rows and units that are not or have never been created, you must first create them. For example, create row IRowrowsheet. CreateRow (1) in the second row.
After reading step 2, you can operate the HSSFWorkbook class in the same way as in the first tutorial. One rule that must be followed is t
When we make a Web page, because some of the web editing software sometimes changes the page elements we have set up, we often use Notepad to edit and modify the page files. How can I quickly invoke Notepad to edit and modify a Web page file? You can do this by simply making a few changes to your registry.
Click "Start" → "Run", enter "regedit" in the dialog box
How does CKeditor edit template files (default source code mode )? You want to use Ckeditor to edit the template html source file
After switching from the text mode to the source code mode, once the text mode is switched back to the source code mode, many
Such redundant characters;Who knows how to set the default source code mode?If you have better online templ
keyword n Toggle keyword upCommand for the last-line mode:: Nohl Suppress highlighting: Set Nu Sets line number: Set Nonu Cancel line number: W Save: Q exit: Wq Save and exit: wq! Force Save and exit: W/tmp/aa Save As: e/root/passwd Discard current file edit, open new file:! + command to execute commands without interrupting the current edits:! Date: R + File path reads other file contents at cursor location and inserts: r/root/cal: S/student/chen Th
Php: how to edit and save files
This example describes how to edit and save files in php. Share it with you for your reference. The details are as follows:Save_file.php:
Session_start ();
$ Handle = fopen ($ _ POST ['original _ file_name '], "w ");
$ Text = $ _ POST ['File _ co
Excerpt from: Xuefeng LiaoNever edit any text file with a Notepad that comes with Windows. The reason is that Microsoft Development Notepad team used a very mentally retarded behavior to save UTF-8 encoded files, they are smart to add 0XEFBBBF (hex) characters at the beginning of each file, you will encounter a lot of incredible problems, for example, the first line of the page may show a "?", obviously the
Copy CodeThe code is as follows:
/*
Traverse the folder; Function: (a) can delete the file (b) editable text, Web page file (c) can delete the folder, if the folder is empty (d) can establish files, folders, modify the folder name;
lost63.com original, reproduced please indicate the source. AC qq:35501547
*/
$path = $DOCUMENT _root;
$path =str_replace ("/", "\ \", $path);
Specify folder
$path = $path. " \\";
if ($_get[' folder ')
{
$path. =$_get[' fo
Access the VI command VI filename: open or create a file and place the cursor at the beginning of the first lineVi + N filename: open the file and place the cursor at the beginning of line NVi + filename: open the file and place the cursor at the beginning of the last lineVi +/pattern filename: open the file and place the cursor at the first string matching patternVI-r filename: a system crash occurred when VI was being edited last time, restoring filenameVI filename... filename: open multiple
.. W00000C0:56-Bayi EC 8c (XX) 8b 5d 1c 8b [db] VS ...]. E...00000d0:75 7e-C0 (8b) A1-u~. UQP.E.P .....00000e0:68 8c xx E8 FC FF FF ff c4 C2 h .... P.........You can then modify the 16-character characters as you would a text file, with/find the specified offset, and so on. Modifying the ASCII character to the right should not be valid. After the modification is done:%!xxd-r switch binary mode, then: Wq Save to exit. In this vim inside such editing is still very convenient, note must:%!xxd-r swi
Eclipse editing Area set font size:Window-Preferences (Preferences)-General-appearance (appearence)-Colors and fonts (Colors and Fonts), in the Right dialog box, select Java-java Editor TextFont, click the Change button that appears, you can set the font size of the program displayed in the main form, click Apply in the bottom right corner after setting up, and then click OK. Eclipse Settings Console font size:Windows----->preferences-----> Appearance--->colors and fonts------> debug---->console
, users can edit the PDF document as the text processing software in Word and WPS, and the whole process of editing the PDF document supports "WYSIWYG" visual editing. This is certainly not available in many of the same software. For users to better edit the PDF document, the software provides a variety of editing and editing functions, the user can modify the text in a PDF document, insert new text or del
VI is a Linux terminal or console under the Common editor, the basic mode of operation is: VI/path/file nameFor example, Vi/etc/fstab indicates that the contents of the/etc/fstab file are displayed. Use the page UP and PAGE DOWN keys on your keyboard to page up and down, press the INSERT key to see the word "insert" in the lower-left corner of the window to indicate that you are currently inserting an edit state, and then insert the contents from the
Tramp means "Transparent remote (file) Access, multiple Protocol", which is an extension pack for the remote file editing of Emacs. Installation method is very simple, open emacs, press "M-x", enter "Package-list-packages", find Tramp expansion pack can click Install.Under Windows, Tramp has been integrated with the Putty package, using the Plink program. So, to use Emacs's tramp function under Windows, you have to download the Putty tool and add putty to the PATH variable,650) this.width=650; "
Generally speaking, the file is divided into two major categories of text and binary files, text file editing is easy, Windows Notepad, UltraEdit are very useful, binary file editing under Windows also has a lot of tools, UltraEdit is good, but Linux? Today finally found a good way, but the final source can not find.First create a binary file:[Email protected] tmp]$ echo-n "abcdefghijklmnopqrstuvwxyz abcdefghijklmnopqrstuvwxyz" > Test.bin[email protec
This article mainly introduces php's methods for editing and saving files, and involves php's skills for reading, editing, and saving files. it has some reference value, for more information about how to edit and save files in php, see the following example. Share it with you for your reference. The details are as foll
numberG # # Move the cursor to the end of the file 1.2.vim Plug-in modeI cursor Seated at position insert characterI insertion of the line at the beginning of the cursora next insertion of the character of the cursorA The end of the line where the cursor is insertedo next line of the row where the cursor is locatedO previous line of the row where the cursor is locateds Remove the character insertion of the cursorS Delete the row where the cursor is insertedExit mode of 1.3.vimEnter in command m
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.