特殊:Badtitle/NS100:PowerUsersBasicCommands

来自Ubuntu中文
Oneleaf留言 | 贡献2007年5月24日 (四) 15:17的版本 (新页面: {{From|https://help.ubuntu.com/community/PowerUsersBasicCommands}} {{Languages|UbuntuHelp:PowerUsersBasicCommands}} == Basic commands you will need == === Basics === These are basic com...)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳到导航跳到搜索
可打印版本不再受到支持且可能有渲染错误。请更新您的浏览器书签并改用浏览器默认打印功能。

{{#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

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.

  • Self: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

  • Self: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

  • Self:sed
  • Self:awk
  • ...