Article Title: Set up a blog site in 10 seconds with a single command line !. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In Ubuntu Linux, enter nb in the command terminal and press Enter. The system will prompt you:
The program 'nb' is currently not installed. You can install it by typing:
Sudo apt-get install nanoblogger
Bash: nb: command not found (meaning that the nb program is not installed. You can run sudo apt-get install nanoblogger to install it)
Enter the following command:
Sudo apt-get install nanoblogger
After a while, the nb program will be automatically downloaded and installed in just over a dozen seconds (the nb program is very small, only over 80 KB. Then let's look at the usage:
Nb -- help
The output help information is:
NanoBlogger-Console weblog engine. Version 3.3, by Kevin Wood Usage: Nb [-B blog_dir] [options] Options: -A, -- add create new entry, category, or weblog (Directory ). -B, -- blogdir Specify weblog directory. -B, -- body Deprecated, please use '-t' or' -- text' Instead. -C, -- category Specify category (for '-- add ', '-- Delete',' -- edit', '-- list ', '-- Update', and' -- update-cache '). -- Upload File Specify an alternate configuration file. -- Configure weblog (for '-- Update '). -- Datadir Specify weblog's data directory. -D, -- delete Delete an entry or category. -D, -- desc Set text of description (for '-- add ', '-- Draft', '-- makefile' and '-- Makepage '). -E, -- edit Edit an entry or category. -E, -- draft Edit or create metafile. -F, -- file Specify metafile to import as entry (For '-- add '). -H, -- help show this help message. -I, -- interactive <1 = on/0 = off> toggle interactive mode (for '-- add ', '-- Delete',' -- preview', '-- publish ', And '-- Update '). -L, -- list entries or categories (defaults Max ). -- Manual view the manual. -M, -- move Move an entry to a specified Category (for '-- category '). -M, -- makepage Create new weblog page (file2) from Metafile (file1 ). -- Makefile Create new metafile. -N, -- author Set text of author (for '-- add ', '-- Draft', '-- makefile' and '-- Makepage '). -- Plugindir Specify weblog's plugin directory. -P, -- preview run command to preview weblog. -P, -- publish run command to publish weblog. -Q, -- query Specify a query to run (for '-- edit' and '-- Delete '). -- Template Specify file to load as template ( '-- Draft', '-- makepage' and '-- Makefile '). -- Template-dir Specify weblog's template directory. -T, -- title Set text of title (for '-- add ', '-- Category', '-- draft ', '-- Makefile' and' -- makepage '). -- Tag Specify tag (for '-- add',' -- draft ', '-- Edit',' -- makefile' and '-- Makepage '). -- Tag-text Set text of tag (for '-- tag '). -T, -- text Set text of body (for '-- add ', '-- Draft', '-- makefile' and '-- Makepage '). -U, -- update-cache Force update of weblog's cache removing Specified cached data (defaults 'Expired '). -U, -- update force update of weblog's files updating Specified weblog data (defaults 'Max '). -V, -- verbose <1 = on/0 = off> toggle level of verbosity. -V, -- version display version information. -C,-d,-e,-m accepts multiple ID numbers seperated by commas (e.g. 1, 2, 3 ). -- List and -- update can match entries by date (irrelevant of entry id (s )). Date = YYYY-MM-DD, YYYY-MM, YYYY Examples: Specify the weblog directory to create or add new entry Nb-B ~ /Public_html/weblog- Create new category and title it "News" Nb-B ~ /Public_html/weblog-t "News"-c new- Create new entry using nothing but command line options! Nb-B ~ /Public_html/weblog-n 'myname'-t 'title'-t' Text! '- More info: URL: http://nanoblogger.sourceforge.net |
Oh, a lot of available command operations are prompted. Create a blog first, and create a blog under the blog directory of the local server (multiple users are allowed). The command is:
Nb-B/var/www/blog/-
Then you can access it through a browser:
As for how to write a blog, you can directly write it through the command line, or use any editor to write it and then import it. This is not a problem.
This NanoBlogger does not have high space requirements and does not require any databases. It only supports static HTML space. The functions are comprehensive, and plug-ins are supported. Blog upgrade is simpler. You can upgrade your blog directly when the system is updated.
Now you know what nb is, right?