Site Panel Help User Panel Help Panel Demo's Search Help

Categories

· Show all categories

· New Customer FAQs
· E-Mail
· FTP - File Transfers
· Domains
· SSH and Telnet
· Scripting Languages
· Password Protection
· MySQL
· Stats
· Power Tools

· FAQ Home

· EchoEcho+ Support

XML-File

<?xml version="1.0" encoding="iso-8859-1"
standalone="yes" ?>
<!-- XML-Output by phpMyFAQ 1.3.8 -->
<phpmyfaq
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:NamespaceSchemaLocation="http://www.phpmyfaq.de/xml/faqschema.xsd">
<article id="6">
	<language>en</language>
	<category>SSH and Telnet</category>
	<keywords></keywords>
	<theme>Basic command reference</theme>
	<content
xmlns="http://www.w3.org/TR/REC-html40">This is a short list of the
most useful Linux commands that
you might need
during an SSH or Telnet login:

--------------------------------------------------------------------------------



<b><span style="color: red;">Working With
Directories</span>
</b>
<b>List a directory</b>

<span style="color: blue;">ls -l
<i>path</i></span>
Long listing, with date, size and permissions.


<span style="color: blue;">ls -a
<i>path</i></span>
Show all files, including important .dot files that
don&#039;t otherwise
show.


<span style="color: blue;">ls <i>path</i> |
more</span>
Show listing one screen at a time.



<b>Change Directory</b>

<span style="color: blue;">cd
<i>dirname</i></span>
Change into a new directory


<span style="color: blue;">cd ~</span>
Go back to home directory, useful if you&#039;re lost.


<span style="color: blue;">cd ..</span>
Go back one directory.



<b>Print working directory</b>

<span style="color: blue;">pwd</span>
Show where you are as full path. Useful if you&#039;re lost
or exploring.



<b>Make new directory</b>

<span style="color: blue;">mkdir
<i>dirname</i></span>
Creates a directory


<b>Remove Directory</b>

<span style="color: blue;">rmdir
<i>dirname</i></span>
Only works if dirname is empty (has no files in it).


<span style="color: blue;">rm -rf
<i>dirname</i></span>
Remove all files and subdirs. Careful!




--------------------------------------------------------------------------------



<b><span style="color: red;">Working With
Files</span>
</b>

<b>Copy a file or directory</b>

<span style="color: blue;">cp <i>oldfile
newfile</i></span>



<span style="color: blue;">cp -r <i>old-directory
new-directory</i></span>
Recursive, copy directory and all subdirs.


<b>Move (or rename) a file</b>

<span style="color: blue;">mv <i>oldname
newname</i></span>
Moving a file and renaming it are the same thing.


<b>Find files on system</b>

<span style="color: blue;">find
<i>filename</i></span>
Works with wildcards.

<span style="color: blue;">slocate
<i>filename</i></span>
This searches a database, rather than the actual directory
tree, which
makes it much faster than find.




--------------------------------------------------------------------------------



<b><span style="color: red;">File
Permissions</span></b>

<span style="color: blue;">chmod 600
<i>filename</i></span>
You can read and write; the world can&#039;t. Good for
files.

<span style="color: blue;">chmod 700
<i>filename</i></span>
You can read, write, and execute; the world can&#039;t. Good
for scripts.

<span style="color: blue;">chmod 644
<i>filename</i></span>
You can read and write; the world can only read. Good for
web pages.

<span style="color: blue;">chmod 755
<i>filename</i></span>
You can read, write, and execute; the world can read and
execute. Good for
programs you want to share.


<b>Change file permissions with letters:</b>

u = user (you)
g = group
a = everyone

r = read
w = write
x = execute

<span style="color: blue;">chmod u+rw
<i>filename</i></span>
  
Give yourself read and write permission

<span style="color: blue;">chmod u+x
<i>filename</i></span>
Give yourself execute permission.

<span style="color: blue;">chmod a+rw
<i>filename</i></span>
Give read and write permission to everyone.




--------------------------------------------------------------------------------

<a href="http://www.oreillynet.com/linux/cmd/"
target="_blank">A more
extensive list is available here</a></content>
	<author>EchoEcho Support</author>
	<date>12.07.2009, 21:11</date>
</article>
</phpmyfaq>

open XML-File

Copyright © EchoEchoPlus Hosting