特殊:Badtitle/NS100:PowerUsersBasicCommands:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第16行: | 第16行: | ||
=== More advanced commands === | === More advanced commands === | ||
Now for some cooler stuff, Here are some commands that are a little harder to use but are extremly usefull. Some have pages explaining them in more details. | Now for some cooler stuff, Here are some commands that are a little harder to use but are extremly usefull. Some have pages explaining them in more details. | ||
<ol><li> | <ol><li>[[UbuntuHelp:grep]] - Allows you to search for a pattern in a file. Grep is more useful when it's used with regular expressions.</li></ol> | ||
ex: grep "Nicolas" names.txt | ex: grep "Nicolas" names.txt | ||
<ol><li> | <ol><li>[[UbuntuHelp:find]] - You probably guess it. Find will find files for you. It can search for files using specific attributes such as it's name, date of modification, size what ever.</li></ol> | ||
ex: find ~/ -name test.txt -print | ex: find ~/ -name test.txt -print | ||
<ol><li> | <ol><li>[[UbuntuHelp:sed]] | ||
</li><li> | </li><li>[[UbuntuHelp:awk]] | ||
</li><li>...</li></ol> | </li><li>...</li></ol> | ||
2008年10月19日 (日) 16:55的版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/PowerUsersBasicCommands }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/af | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Afrikaans| [[::PowerUsersBasicCommands/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ar | • {{#if: UbuntuHelp:PowerUsersBasicCommands|العربية| [[::PowerUsersBasicCommands/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/az | • {{#if: UbuntuHelp:PowerUsersBasicCommands|azərbaycanca| [[::PowerUsersBasicCommands/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/bcc | • {{#if: UbuntuHelp:PowerUsersBasicCommands|جهلسری بلوچی| [[::PowerUsersBasicCommands/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/bg | • {{#if: UbuntuHelp:PowerUsersBasicCommands|български| [[::PowerUsersBasicCommands/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/br | • {{#if: UbuntuHelp:PowerUsersBasicCommands|brezhoneg| [[::PowerUsersBasicCommands/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ca | • {{#if: UbuntuHelp:PowerUsersBasicCommands|català| [[::PowerUsersBasicCommands/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/cs | • {{#if: UbuntuHelp:PowerUsersBasicCommands|čeština| [[::PowerUsersBasicCommands/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/de | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Deutsch| [[::PowerUsersBasicCommands/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/el | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Ελληνικά| [[::PowerUsersBasicCommands/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/es | • {{#if: UbuntuHelp:PowerUsersBasicCommands|español| [[::PowerUsersBasicCommands/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/fa | • {{#if: UbuntuHelp:PowerUsersBasicCommands|فارسی| [[::PowerUsersBasicCommands/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/fi | • {{#if: UbuntuHelp:PowerUsersBasicCommands|suomi| [[::PowerUsersBasicCommands/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/fr | • {{#if: UbuntuHelp:PowerUsersBasicCommands|français| [[::PowerUsersBasicCommands/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/gu | • {{#if: UbuntuHelp:PowerUsersBasicCommands|ગુજરાતી| [[::PowerUsersBasicCommands/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/he | • {{#if: UbuntuHelp:PowerUsersBasicCommands|עברית| [[::PowerUsersBasicCommands/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/hu | • {{#if: UbuntuHelp:PowerUsersBasicCommands|magyar| [[::PowerUsersBasicCommands/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/id | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Bahasa Indonesia| [[::PowerUsersBasicCommands/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/it | • {{#if: UbuntuHelp:PowerUsersBasicCommands|italiano| [[::PowerUsersBasicCommands/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ja | • {{#if: UbuntuHelp:PowerUsersBasicCommands|日本語| [[::PowerUsersBasicCommands/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ko | • {{#if: UbuntuHelp:PowerUsersBasicCommands|한국어| [[::PowerUsersBasicCommands/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ksh | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Ripoarisch| [[::PowerUsersBasicCommands/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/mr | • {{#if: UbuntuHelp:PowerUsersBasicCommands|मराठी| [[::PowerUsersBasicCommands/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ms | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Bahasa Melayu| [[::PowerUsersBasicCommands/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/nl | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Nederlands| [[::PowerUsersBasicCommands/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/no | • {{#if: UbuntuHelp:PowerUsersBasicCommands|norsk| [[::PowerUsersBasicCommands/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/oc | • {{#if: UbuntuHelp:PowerUsersBasicCommands|occitan| [[::PowerUsersBasicCommands/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/pl | • {{#if: UbuntuHelp:PowerUsersBasicCommands|polski| [[::PowerUsersBasicCommands/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/pt | • {{#if: UbuntuHelp:PowerUsersBasicCommands|português| [[::PowerUsersBasicCommands/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ro | • {{#if: UbuntuHelp:PowerUsersBasicCommands|română| [[::PowerUsersBasicCommands/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/ru | • {{#if: UbuntuHelp:PowerUsersBasicCommands|русский| [[::PowerUsersBasicCommands/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/si | • {{#if: UbuntuHelp:PowerUsersBasicCommands|සිංහල| [[::PowerUsersBasicCommands/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/sq | • {{#if: UbuntuHelp:PowerUsersBasicCommands|shqip| [[::PowerUsersBasicCommands/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/sr | • {{#if: UbuntuHelp:PowerUsersBasicCommands|српски / srpski| [[::PowerUsersBasicCommands/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/sv | • {{#if: UbuntuHelp:PowerUsersBasicCommands|svenska| [[::PowerUsersBasicCommands/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/th | • {{#if: UbuntuHelp:PowerUsersBasicCommands|ไทย| [[::PowerUsersBasicCommands/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/tr | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Türkçe| [[::PowerUsersBasicCommands/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/vi | • {{#if: UbuntuHelp:PowerUsersBasicCommands|Tiếng Việt| [[::PowerUsersBasicCommands/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/yue | • {{#if: UbuntuHelp:PowerUsersBasicCommands|粵語| [[::PowerUsersBasicCommands/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/zh | • {{#if: UbuntuHelp:PowerUsersBasicCommands|中文| [[::PowerUsersBasicCommands/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/zh-hans | • {{#if: UbuntuHelp:PowerUsersBasicCommands|中文(简体)| [[::PowerUsersBasicCommands/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:PowerUsersBasicCommands | UbuntuHelp:PowerUsersBasicCommands | {{#if: | :}}PowerUsersBasicCommands}}/zh-hant | • {{#if: UbuntuHelp:PowerUsersBasicCommands|中文(繁體)| [[::PowerUsersBasicCommands/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:PowerUsersBasicCommands|:PowerUsersBasicCommands|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :PowerUsersBasicCommands/zh | | {{#ifexist: PowerUsersBasicCommands/zh | | {{#ifeq: {{#titleparts:PowerUsersBasicCommands|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:PowerUsersBasicCommands|1|-1|}} | zh | | }}
Basic commands you will need
Basics
These are basic commmands you should learn to use well. To get more information about each one simply search the Unix manual pages by typing man followed by the filename at the shell prompt
- ls - list files
ex: ls -l filename
- cp - copy file1 to file2
ex: cp file1 file2
- mv - move file1 to file2 (Useful for renaming)
ex: mv file1 file2 1.
More advanced commands
Now for some cooler stuff, Here are some commands that are a little harder to use but are extremly usefull. Some have pages explaining them in more details.
- UbuntuHelp:grep - Allows you to search for a pattern in a file. Grep is more useful when it's used with regular expressions.
ex: grep "Nicolas" names.txt
- UbuntuHelp:find - You probably guess it. Find will find files for you. It can search for files using specific attributes such as it's name, date of modification, size what ever.
ex: find ~/ -name test.txt -print