个人工具

“UbuntuHelp:PowerUsersBasicCommands”的版本间的差异

来自Ubuntu中文

跳转至: 导航, 搜索
(新页面: {{From|https://help.ubuntu.com/community/PowerUsersBasicCommands}} {{Languages|UbuntuHelp:PowerUsersBasicCommands}} == Basic commands you will need == === Basics === These are basic com...)
 
第4行: 第4行:
 
=== Basics ===   
 
=== 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
 
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  
* ls - list files  
+
 
ex: ls -l filename  
 
ex: ls -l filename  
* cp - copy file1 to file2
+
# cp - copy file1 to file2
 
ex: cp file1 file2
 
ex: cp file1 file2
* mv - move file1 to file2 (Useful for renaming)
+
# mv - move file1 to file2 (Useful for renaming)
 
ex: mv file1 file2
 
ex: mv file1 file2
*
+
1.
 
=== 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.
 
+
# Self:grep - Allows you to search for a pattern in a file. Grep is more useful when it's used with regular expressions.
* 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
 
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.
+
# 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
 
ex: find ~/ -name test.txt -print
* Self:sed
+
# Self:sed
* Self:awk
+
# Self:awk
* ...
+
# ...
 
----
 
----
 
[[category:CategoryDocumentation]]
 
[[category:CategoryDocumentation]]
  
 
[[category:UbuntuHelp]]
 
[[category:UbuntuHelp]]

2007年11月30日 (五) 21:07的版本

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

  1. ls - list files

ex: ls -l filename

  1. cp - copy file1 to file2

ex: cp file1 file2

  1. 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.

  1. 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

  1. 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

  1. Self:sed
  2. Self:awk
  3. ...