UbuntuHelp: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...)
点击翻译: |
English |
请不要直接编辑翻译本页,本页将定期与来源同步。 |
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
- ...