特殊:Badtitle/NS100:Vfu:修订间差异
小 新页面: {{From|https://help.ubuntu.com/community/Vfu}} {{Languages|UbuntuHelp:Vfu}} vfu ia a nifty little text-based file-manager which can be run from a terminal. === Helpful Commands: === *... |
(没有差异)
|
2007年5月24日 (四) 14:30的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/Vfu }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/af | • {{#if: UbuntuHelp:Vfu|Afrikaans| [[::Vfu/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ar | • {{#if: UbuntuHelp:Vfu|العربية| [[::Vfu/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/az | • {{#if: UbuntuHelp:Vfu|azərbaycanca| [[::Vfu/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/bcc | • {{#if: UbuntuHelp:Vfu|جهلسری بلوچی| [[::Vfu/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/bg | • {{#if: UbuntuHelp:Vfu|български| [[::Vfu/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/br | • {{#if: UbuntuHelp:Vfu|brezhoneg| [[::Vfu/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ca | • {{#if: UbuntuHelp:Vfu|català| [[::Vfu/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/cs | • {{#if: UbuntuHelp:Vfu|čeština| [[::Vfu/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/de | • {{#if: UbuntuHelp:Vfu|Deutsch| [[::Vfu/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/el | • {{#if: UbuntuHelp:Vfu|Ελληνικά| [[::Vfu/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/es | • {{#if: UbuntuHelp:Vfu|español| [[::Vfu/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/fa | • {{#if: UbuntuHelp:Vfu|فارسی| [[::Vfu/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/fi | • {{#if: UbuntuHelp:Vfu|suomi| [[::Vfu/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/fr | • {{#if: UbuntuHelp:Vfu|français| [[::Vfu/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/gu | • {{#if: UbuntuHelp:Vfu|ગુજરાતી| [[::Vfu/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/he | • {{#if: UbuntuHelp:Vfu|עברית| [[::Vfu/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/hu | • {{#if: UbuntuHelp:Vfu|magyar| [[::Vfu/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/id | • {{#if: UbuntuHelp:Vfu|Bahasa Indonesia| [[::Vfu/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/it | • {{#if: UbuntuHelp:Vfu|italiano| [[::Vfu/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ja | • {{#if: UbuntuHelp:Vfu|日本語| [[::Vfu/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ko | • {{#if: UbuntuHelp:Vfu|한국어| [[::Vfu/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ksh | • {{#if: UbuntuHelp:Vfu|Ripoarisch| [[::Vfu/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/mr | • {{#if: UbuntuHelp:Vfu|मराठी| [[::Vfu/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ms | • {{#if: UbuntuHelp:Vfu|Bahasa Melayu| [[::Vfu/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/nl | • {{#if: UbuntuHelp:Vfu|Nederlands| [[::Vfu/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/no | • {{#if: UbuntuHelp:Vfu|norsk| [[::Vfu/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/oc | • {{#if: UbuntuHelp:Vfu|occitan| [[::Vfu/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/pl | • {{#if: UbuntuHelp:Vfu|polski| [[::Vfu/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/pt | • {{#if: UbuntuHelp:Vfu|português| [[::Vfu/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ro | • {{#if: UbuntuHelp:Vfu|română| [[::Vfu/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/ru | • {{#if: UbuntuHelp:Vfu|русский| [[::Vfu/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/si | • {{#if: UbuntuHelp:Vfu|සිංහල| [[::Vfu/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/sq | • {{#if: UbuntuHelp:Vfu|shqip| [[::Vfu/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/sr | • {{#if: UbuntuHelp:Vfu|српски / srpski| [[::Vfu/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/sv | • {{#if: UbuntuHelp:Vfu|svenska| [[::Vfu/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/th | • {{#if: UbuntuHelp:Vfu|ไทย| [[::Vfu/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/tr | • {{#if: UbuntuHelp:Vfu|Türkçe| [[::Vfu/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/vi | • {{#if: UbuntuHelp:Vfu|Tiếng Việt| [[::Vfu/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/yue | • {{#if: UbuntuHelp:Vfu|粵語| [[::Vfu/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/zh | • {{#if: UbuntuHelp:Vfu|中文| [[::Vfu/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/zh-hans | • {{#if: UbuntuHelp:Vfu|中文(简体)| [[::Vfu/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:Vfu | UbuntuHelp:Vfu | {{#if: | :}}Vfu}}/zh-hant | • {{#if: UbuntuHelp:Vfu|中文(繁體)| [[::Vfu/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:Vfu|:Vfu|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :Vfu/zh | | {{#ifexist: Vfu/zh | | {{#ifeq: {{#titleparts:Vfu|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:Vfu|1|-1|}} | zh | | }}
vfu ia a nifty little text-based file-manager which can be run from a terminal.
Helpful Commands:
- h - help
- q - exit
- ENTER - view file or enter folder
- BKSPACE - up a level
- e - erase file/folder
- c - copy files
- m - move files
- i - edit file
- 0 - switch between simple and detailed listings
- ~ - to home directory
- . - show/hide hidden files
- F - mask files
- u - user menu
- TAB - edit file name/properties
Changing location of config file:
To change where the configuration file is stored ( such as moving it to .config so that it does not clutter the home folder) add
# to get vfu to put config file into ~/.conf # have to export $RC_PREFIX as .conf export RC_PREFIX=.config
into the file .bashrc
. The configiuraton file can now be found in ~/.config/vfu/vfu.conf
If you decide not to change the location of the config file, it will be stored in ~/.vfu/vfu.conf
Custom File Editor:
To change the text editor used by vfu find, within the vfu.conf
file, the line (near the top):
Editor=vim %f
and change it so that `vim` is the editor of your choice, such as `gedit`, `kwrite`, `mousepad`, `vi`, `vim`, `nano`, `emacs`. You may have to turn off the 'use internal editor' option in the options menu (press `o` to bring up menu and `SPACE` to turn off option). It is also possible to use a different viewer if you so wish.
Custom File Associations:
Vfu can be customised to open different files with different programs; Entrys are put in the comma separated format such as:
ux=SEE DOC,ENTER,.doc.DOC.odt.sxw.,ooffice2 -writer "%f" &
Where:
- `SEE DOC` is just a short descriptive name
- `ENTER` is the action on the file
- `.ext.ext.ext.ext.` the file extentions to which the actions apply (dot separated list)
- `ooffice2 -writer "%f"` is the command to use on the file, "%f" is the location of the file
- `&` indicates that you whish to continue using vfu whist the file is open
Thus, vfu will open ooffice2 -writer when I press ENTER on a .odt file (or .doc , .sxw etc).
Example section:
# view pictures ux=SEE JPEG,ENTER,.JPG.jpg.JPEG.jpeg.gif.xpm.png.,feh "%f" 2> /dev/null & # view HTML documents -- now moved to SEE filters below ux=SEE HTML,ENTER,.htm.html.shtml.,firefox "%F" & #ux=SEE HTM,ENTER,.htm.html.,w3m "%F" ux=SEE HTML,INSERT,.htm.html.shtml.,w3m "%F" # office document viewing ux=SEE DOC,ENTER,.doc.DOC.odt.sxw.,ooffice2 -writer "%f" & ux=SEE SHEET,ENTER,.ods.sxc.xls.,ooffice2 -calc "%f" & ux=SEE PRESENTATION,ENTER,.odp.ppt.sxi.,ooffice2 -impress "%f" & ux=SEE DRAW,ENTER,.odg.sxd.sda.sdd.,ooffice2 -draw "%f" & #music x=PLAY MP3,ENTER,.ogg.mp3.wav.wma.,vlc -I skins2 "%f" %i 1> /dev/null 2> /dev/null & ux=PLAY MP3,INSERT,*,xmms *.mp3 *.wav 1> /dev/null 2> /dev/null & # view PDF and PS document ux=VIEW PDF,ENTER,.pdf.PDF.,acroread "%f"& ux=VIEW PS,ENTER,.ps.,gv "%f"& # ux=VIEW TAR,INS,.gz.,gunzip -c "%f" | tar tvf - | less # view man pages -- note you can add and see filter for this ux=VIEW MAN,ENTER,.1.2.3.4.5.6.7.8.,man "%F" # play mpeg's ux=PLAY MPEG,ENTER,.mpg.MPG.mpeg.asf.avi.mov.wmv.,vlc -I skins2 "%f" 1> /dev/null 2> /dev/null & ux=PLAY MPEG,INS,.mpg.MPG.mpeg.asf.avi.mov.wmv.,vlc -I skins2 "%f" 1> /dev/null 2> /dev/null &
Custom User Menu:
The user menu is reached by pressing the `u` key. Custom options in this menu can be added by finding the section;
# # following user commands are bound to the UserMenu -- key `u' # note that instead of keyname there's `menu' string! # first letter is hotkey! # ux=lLocate file,menu,*,locate %? %w ux=---,menu,*, ux=ompg123: Stop,menu,*,killall -TERM mpg123 1> /dev/null 2> /dev/null & ux=smpg123: Suspend,menu,*,killall -STOP mpg123 1> /dev/null 2> /dev/null & ux=cmpg123: Continue,menu,*,killall -CONT mpg123 1> /dev/null 2> /dev/null & ux=vmpg123: View running/queue,menu,*,ps xeo "%%p %%a" | grep mpg123 | grep -v grep | less
The format is of comma separated fields:
ux=kname,menu,*,command
where:
- `k` is the shortcut key in the menu.
- `name` is the name of the entry in the menu.
- `menu` states that it is a menu item.
- `*` is the filetype filter - leave it as an asterix to enable it to be performed on all files/folders.
- `command` is the command to be performed the variable "%f" is used to add in the location of the file/folder. An '&' can be added on at the end if you want to continue using vfu whilst the action is being performed.
Example menu section:
# # following user commands are bound to the UserMenu -- key `u` # note that instead of keyname there's `menu` string! # first letter is hotkey! # ux=lLocate file,menu,*,locate %? %w ux=---,menu,*, ux=ffeh: show pics in feh,menu,*,feh "%f" & ux=gfeh: show pics fullscreen,menu,*,feh -F "%f" ux=pplay: play in xfmedia,menu,*,xfmedia "%f" & ux=wwatch: play in vlc,menu,*,vlc -I skins2 "%f" 1> /dev/null 2> /dev/null & ux=---,menu,*, ux=ompg123: Stop,menu,*,killall -TERM mpg123 1> /dev/null 2> /dev/null & ux=smpg123: Suspend,menu,*,killall -STOP mpg123 1> /dev/null 2> /dev/null & ux=cmpg123: Continue,menu,*,killall -CONT mpg123 1> /dev/null 2> /dev/null & ux=vmpg123: View running/queue,menu,*,ps xeo "%%p %%a" | grep mpg123 | grep -v grep | less
Where extra options have been added to play music/videos in xfmedia or vlc and to show pictures in feh. i.e. It is now possible to open a folder of pictures using feh or a folder of music using vlc (with the options for a nice skin)
But the best way to find out about vfu (and most other programs) is to make a backup of the file and then play arround with it to see what you can get it to do.