Acquainted With UNIX Commands
http://bejokemayangan.blogspot.com/2011/04/acquainted-with-unix-commands.html
Hmm .. time to migrate ... ;) Well, this time we will learn about basic UNIX commands. As for the things you need to consider before starting are:
-------------------------------------------------- ------------------------------------------------
- Linux / UNIX distinguish uppercase and lowercase letters (case sensitive).
- All UNIX commands are written in small letters.
- If the next time you need further explanation of a command, use the "magic formula" below, type in your console:
$ Man command
For example:
$ Man cd
man can be interpreted as a manual. The above command means it will display the manual for the cd command. Henceforth, you can do the same in other commands.
-------------------------------------------------- ------------------------------------------------
--------
ls
--------
This command is used to display a list of files in that directory.
$ Ls - help
The above command will display help for the command ls
$ Ls-l
To display additional information (l = long)
$ Ls-a
This will display the hidden files. here represents a word atrribute
$ Ls-la
Additional information is displayed by the flag-l involves a user who has 'owns', file date and time the file was created, the rights / permissions file, as well as other information. For example:
rwxr-x - x
Note:
characters 1-3: user / owner permissions
characters 4-6: group permissions
7-8 characters: other permissions
Explanations of each of these characters are:
r - read, permissions to 'read'
w - write, the permissions to 'write'
x - (e) xecute, permission to 'run'
So, the meaning of the above example is:
user / owner can do (right) read / read, write and execute / run the file that one group with the user / owner can read, execute / run the files of other users to execute / run the file.
This means that permissions do not exist, if there are d prior permission means it is a directory.
--------------
paint
--------------
Paint or concatenate commands used to display and write / create files. $ Cat spyrozone.txt
- Displays the contents of the file spyrozone.txt
$ Cat "Hello"> spyrozone.txt
Create a file with a name that contains the text Hello spyrozone.txt. To add the contents of the file, type:
$ Cat "Hello Spyro">> spyrozone.txt
You can just change the sign> into>>
$ Cat-n tutorial.txt
The above command will display the contents tutorial.txt accompanied with line numbers. Useful if you want to see this source code of a program, such as C / C + +
You can combine the contents of several files into one file. Suppose you have several files with names spyro1.txt & spyro2.txt. You want to combines all the files in a file named spyrozone.txt, then the command used is:
$ Cat spyro1.txt spyro2.txt> spyrozone.txt
--------------
more
--------------
Displays the contents of the file in perlayar.
$ More tutor.txt
You will see a row of numbers 1 through 23 and the bottom line numbers printed words "- More - (20%)." To navigate to see how it looks, use the two buttons below.
»Space to forward one full screen. The meaning of a single screen is the number of rows displayed on your console screen. Typically, the Linux console is set at a resolution of 80 columns and 25 rows. Thus, the emphasis of a space means the display 23 or 24 the next line.
»The" b "to go back one full screen. Explanation of the meaning of a single screen the same as above.
If you keep pressing the space bar until the end of the file, it automatically stops and more programs will come back to the shell prompt. Similarly, if you press the [Ctrl] + [C] at any time. The [Ctrl] + [C] alone is the universal key combinations on the Linux console to terminate a program execution and not solely for the more alone. Another way to end the more program is by pressing the "q".
--------------
grep
--------------
Displays all lines that contain the desired pattern:
$ Grep spyrozone tutor.txt
--------------
echo
--------------
Echo is used to display what we type on the screen. This command is the same as in DOS ECHO command.
echo "The Newbie Hackers spirit station!"
The Newbie Hackers spirit station!
You can also create a file with this command:
echo "The Newbie Hackers spirit station!" > Spyrokid.txt
The above command will create a file spyrokid.txt in active directory. The file will contain the text "The Newbie Hackers spirit station!" (Without the quotes). To add the contents of the file, replace> with>>
Here is another interesting example of the use of echo:
$ Echo-e "\ thehehe \ b \ b \ b \ b \ b \ bspyrozone \ n"> spyro.txt
Look spyro.txt file contents with cat command, you will see the contents of the file:
spyrozone
Why, where else? why are there only spyrozone? Here's the explanation:
»\ T in the echo indicates the use of tabulation. In the Linux console, tabulation gives the distance of 8 characters. Without the option-A, paint translate \ t to tab characters so that the sequence of characters "spyrozone" diindentasi. With-A, \ t is displayed as a string ^ I, namely the control character for tabulation.
»\ B means backspace aka the echo erase one character to the left. Hence \ b typed three times, then this is tantamount to deleting the phrase "hehehe" as seen in the view of paint. With the option-A, the backspace character is displayed as ^ H and the phrase "hehehe" still visible.
»\ N in the echo means providing a blank line. Even with the option-A, still be given a blank line under the heading "spyrozone". Only, now there are 2 characters $. One to signify the end of the line (end of line) on the lines of "spyrozone" and one to mark the line underneath. Notice the blank space between a question mark and the character $.
--------------
CD
--------------
Representing the word change directory. This command is used to move directory.
$ Cd / root
************************************************** ***************
In Linux that is used is / (slash) instead of \ (backslash)
************************************************** ***************
--------------
cp
--------------
Copy command used to copy files.
$ Cp tutor.txt tutor.txt.bak
$ Cp tutor.txt ~ Spyro / backup-data / tutor.txt.backup
--------------
mv
--------------
Representing the word move. This command is used to rename a file or directory.
$ Mv tutor.txt tutor-backup.txt
$ Mv backup Tub
--------------
rm
--------------
Remove command is used to delete the file.
$ Rm tutor.txt
The above command will delete the file tutor.txt
rm *
The above command will delete the ENTIRE FILE in active directory.
--------------
mkdir
--------------
Make directory, used to create a directory.
$ Mkdir my room
--------------
rmdir
--------------
Remove Directory, delete the directory. This command is required to remove the directory. But you should remember that the files are located in the directory must be deleted before you delete a directory.
$ Rmdir backup
--------------
WHO
--------------
WHO used to display users who log into the system. Output ordered roughly as follows:
$ WHO
root tty1 Nov 20 17:47
spyrokid tty2 Nov 20 17:48
spyrokid tty3 Nov 20 17:48
spyrokid ttyp0 Nov 20 18:43 (localhost)
The first column shows the user's login name, the second column shows
terminal line is used, the third column shows the time of login and
The fourth column shows the origin of their domain or IP connection, if empty
means they play directly from the console.
--------------
whoami
--------------
Forget who you are?
$ Whoami
spyrokid
Other commands:
$ WHO am i
spyrozone! spyrokid tty3 Nov 20 17:48
--------------
pwd
--------------
Show active directory, pwd = print working directory, the command used when jalan2 reply, had not returned by which tau mo:)
$ Pwd
/ Home / spyrokid
--------------
ps
--------------
Displays the active processes
$ Ps
PID TTY STAT TIME COMMAND
87 2 S 0:00-bash
88 3 S 0:00-bash
1440 2 S 0:00 pico jilid2.txt
1443 3 R 0:00 ps
--------------
ping
--------------
Checking whether host 'up' to please the technical term 'man ping'
$ Ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq = 0 ttl = 64 time = 0.2 ms
64 bytes from 127.0.0.1: icmp_seq = 1 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 2 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 3 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 4 ttl = 64 time = 0.1 ms
--- Localhost ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min / avg / max = 0.1/0.1/0.2 ms
spyrozone: ~ $ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq = 0 ttl = 64 time = 0.2 ms
64 bytes from 127.0.0.1: icmp_seq = 1 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 2 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 3 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 4 ttl = 64 time = 0.1 ms
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min / avg / max = 0.1/0.1/0.2 ms
spyrozone: ~ $
Note that localhost and 127.0.0.1 are the same:)
127.0.0.1 is local loopback is provided for testing.
--------------
finger
--------------
Search for user information
$ Finger
Login Name Tty Idle Login Time Office Office Phone
spyrokid Spyrokid November 2 22 01:10
spyrokid Spyrokid November 3 22 01:10
root 1 Nov 22 01:10 1:37
$ Finger@spyrozone.net
[Spyrozone.net]
Welcome to Linux version 2.0.34 at spyrozone.net!
3:46 pm up 2:37, 3 users, load average: 0.00, 0:00, 0:00
Login Name Tty Idle Login Time Office Office Phone
spyrokid Spyrokid November 2 22 01:10
spyrokid Spyrokid November 3 22 01:10
root 1 Nov 22 01:10 1:39
spyrozone: ~ $ finger @ localhost
[Localhost]
Welcome to Linux version 2.0.34 at spyrozone.net!
3:47 pm up 2:38, 3 users, load average: 0.00, 0:00, 0:00
Login Name Tty Idle Login Time Office Office Phone
spyrokid Spyrokid November 2 22 01:10
spyrokid Spyrokid November 3 22 01:10
root 1 Nov 22 01:10 1:40
spyrozone: ~ $ finger spyrokid
Login: spyrokid Name: Spyrokid
Directory: / home / spyrokid Shell: / bin / bash
On since Thu Nov 22 01:10 (PHT) on tty2 8 seconds idle
On since Thu Nov 22 01:10 (PHT) on tty3
Last login Mon Nov 22 01:13 (PHT) on tty4
Mail forwarded to "| IFS = '' & & exec / usr / bin / procmail-f-| | exit 75
# Spyrokid "
No mail.
No Plan.
spyrozone: ~ $ finger root
Login: root Name:
Directory: / root Shell: / bin / bash
On since Thu Nov 22 01:10 (PHT) on tty1 1 hour 42 minutes idle
Mail last read Tue Nov 15 09:19 2004 (PHT)
No Plan.
--------------
ftp
--------------
Using a file transfer program.
spyrozone: ~ $ ftp localhost
Connected to localhost.
Spyrozone.net 220 FTP server (Version wu-2.4.2-academ [BETA-15] (1) Sun
May 20 13:45:04 CDT 2004) ready.
Name (localhost: spyrokid): ftp
331 Guest login ok, send your complete e-mail address as password.
Password: spyrokid@spyrozone.net
230-Welcome, archive user! ...
.............
...........................
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
ftp can also be done by doing a telnet to port 21
spyrozone: ~ $ telnet localhost 21
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
Spyrozone.net 220 FTP server (Version wu-2.4.2-academ [BETA-15] (1) Sun
May 20 13:45:04 CDT 2004) ready.
--------------
talk
--------------
Talking with other users, for example spyrokid request to talk to the root:
root talk
or
talk root@spyrozone.net
[Waiting for your party to respond]
[Ringing your party again]
In the root terminal message may be displayed:
Message from Talk_Daemon @ spyrozone at 4:00 ...
talk: connection requested by spyrokid @ localhost.
talk: respond with: talk spyrokid @ localhost
must type root @ localhost spyrokid talk if you want to answer the request
talk spyrokid @ localhost
[Connection established]
Press Ctrl + C to terminate the connection.
--------------
telnet
--------------
To communicate with other hosts via telnet protocol.
spyrozone: ~ $ telnet localhost
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
Welcome to Linux 2.0.34.
spyrozone login: spyrokid
Password: www.spyrozone.net
Linux 2.0.34.
Last login: Tue Nov 22 01:13:52 on tty4.
No mail.
spyrozone: ~ $ telnet localhost 25
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
220 spyrozone.net ESMTP Sendmail 8.9.0/8.9.0; Tue, November 22, 2004
03:52:51 +0800
helo darling
250 spyrozone.net Hello spyrokid @ localhost [127.0.0.1], pleased to
meet you
mail from: guest@spyrozone.net
250 guest@spyrozone.net ... Sender ok
rcpt to: untukmu@seorang.jauh.disana
250 untukmu@seorang.jauh.disana ... Recipient ok (will of the queue)
data
354 Enter mail, end with "." on a line by Itself
I sent the song and longing greetings
.
250 EAA01615 Message accepted for delivery
quit
spyrozone: ~ $ telnet localhost 110
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
Spyrozone + OK POP3 Server (Version 1.005l) ready at
root user
+ OK please send PASS command
pass www.spyrozone.net
+ OK 2 messages ready for root in / usr / spool / mail / root
stat
+ OK 2 7227
retr 1
quit
Okay, so first introduction, for then you can explore yourself with the man command.
-------------------------------------------------- ------------------------------------------------
- Linux / UNIX distinguish uppercase and lowercase letters (case sensitive).
- All UNIX commands are written in small letters.
- If the next time you need further explanation of a command, use the "magic formula" below, type in your console:
$ Man command
For example:
$ Man cd
man can be interpreted as a manual. The above command means it will display the manual for the cd command. Henceforth, you can do the same in other commands.
-------------------------------------------------- ------------------------------------------------
--------
ls
--------
This command is used to display a list of files in that directory.
$ Ls - help
The above command will display help for the command ls
$ Ls-l
To display additional information (l = long)
$ Ls-a
This will display the hidden files. here represents a word atrribute
$ Ls-la
Additional information is displayed by the flag-l involves a user who has 'owns', file date and time the file was created, the rights / permissions file, as well as other information. For example:
rwxr-x - x
Note:
characters 1-3: user / owner permissions
characters 4-6: group permissions
7-8 characters: other permissions
Explanations of each of these characters are:
r - read, permissions to 'read'
w - write, the permissions to 'write'
x - (e) xecute, permission to 'run'
So, the meaning of the above example is:
user / owner can do (right) read / read, write and execute / run the file that one group with the user / owner can read, execute / run the files of other users to execute / run the file.
This means that permissions do not exist, if there are d prior permission means it is a directory.
--------------
paint
--------------
Paint or concatenate commands used to display and write / create files. $ Cat spyrozone.txt
- Displays the contents of the file spyrozone.txt
$ Cat "Hello"> spyrozone.txt
Create a file with a name that contains the text Hello spyrozone.txt. To add the contents of the file, type:
$ Cat "Hello Spyro">> spyrozone.txt
You can just change the sign> into>>
$ Cat-n tutorial.txt
The above command will display the contents tutorial.txt accompanied with line numbers. Useful if you want to see this source code of a program, such as C / C + +
You can combine the contents of several files into one file. Suppose you have several files with names spyro1.txt & spyro2.txt. You want to combines all the files in a file named spyrozone.txt, then the command used is:
$ Cat spyro1.txt spyro2.txt> spyrozone.txt
--------------
more
--------------
Displays the contents of the file in perlayar.
$ More tutor.txt
You will see a row of numbers 1 through 23 and the bottom line numbers printed words "- More - (20%)." To navigate to see how it looks, use the two buttons below.
»Space to forward one full screen. The meaning of a single screen is the number of rows displayed on your console screen. Typically, the Linux console is set at a resolution of 80 columns and 25 rows. Thus, the emphasis of a space means the display 23 or 24 the next line.
»The" b "to go back one full screen. Explanation of the meaning of a single screen the same as above.
If you keep pressing the space bar until the end of the file, it automatically stops and more programs will come back to the shell prompt. Similarly, if you press the [Ctrl] + [C] at any time. The [Ctrl] + [C] alone is the universal key combinations on the Linux console to terminate a program execution and not solely for the more alone. Another way to end the more program is by pressing the "q".
--------------
grep
--------------
Displays all lines that contain the desired pattern:
$ Grep spyrozone tutor.txt
--------------
echo
--------------
Echo is used to display what we type on the screen. This command is the same as in DOS ECHO command.
echo "The Newbie Hackers spirit station!"
The Newbie Hackers spirit station!
You can also create a file with this command:
echo "The Newbie Hackers spirit station!" > Spyrokid.txt
The above command will create a file spyrokid.txt in active directory. The file will contain the text "The Newbie Hackers spirit station!" (Without the quotes). To add the contents of the file, replace> with>>
Here is another interesting example of the use of echo:
$ Echo-e "\ thehehe \ b \ b \ b \ b \ b \ bspyrozone \ n"> spyro.txt
Look spyro.txt file contents with cat command, you will see the contents of the file:
spyrozone
Why, where else? why are there only spyrozone? Here's the explanation:
»\ T in the echo indicates the use of tabulation. In the Linux console, tabulation gives the distance of 8 characters. Without the option-A, paint translate \ t to tab characters so that the sequence of characters "spyrozone" diindentasi. With-A, \ t is displayed as a string ^ I, namely the control character for tabulation.
»\ B means backspace aka the echo erase one character to the left. Hence \ b typed three times, then this is tantamount to deleting the phrase "hehehe" as seen in the view of paint. With the option-A, the backspace character is displayed as ^ H and the phrase "hehehe" still visible.
»\ N in the echo means providing a blank line. Even with the option-A, still be given a blank line under the heading "spyrozone". Only, now there are 2 characters $. One to signify the end of the line (end of line) on the lines of "spyrozone" and one to mark the line underneath. Notice the blank space between a question mark and the character $.
--------------
CD
--------------
Representing the word change directory. This command is used to move directory.
$ Cd / root
************************************************** ***************
In Linux that is used is / (slash) instead of \ (backslash)
************************************************** ***************
--------------
cp
--------------
Copy command used to copy files.
$ Cp tutor.txt tutor.txt.bak
$ Cp tutor.txt ~ Spyro / backup-data / tutor.txt.backup
--------------
mv
--------------
Representing the word move. This command is used to rename a file or directory.
$ Mv tutor.txt tutor-backup.txt
$ Mv backup Tub
--------------
rm
--------------
Remove command is used to delete the file.
$ Rm tutor.txt
The above command will delete the file tutor.txt
rm *
The above command will delete the ENTIRE FILE in active directory.
--------------
mkdir
--------------
Make directory, used to create a directory.
$ Mkdir my room
--------------
rmdir
--------------
Remove Directory, delete the directory. This command is required to remove the directory. But you should remember that the files are located in the directory must be deleted before you delete a directory.
$ Rmdir backup
--------------
WHO
--------------
WHO used to display users who log into the system. Output ordered roughly as follows:
$ WHO
root tty1 Nov 20 17:47
spyrokid tty2 Nov 20 17:48
spyrokid tty3 Nov 20 17:48
spyrokid ttyp0 Nov 20 18:43 (localhost)
The first column shows the user's login name, the second column shows
terminal line is used, the third column shows the time of login and
The fourth column shows the origin of their domain or IP connection, if empty
means they play directly from the console.
--------------
whoami
--------------
Forget who you are?
$ Whoami
spyrokid
Other commands:
$ WHO am i
spyrozone! spyrokid tty3 Nov 20 17:48
--------------
pwd
--------------
Show active directory, pwd = print working directory, the command used when jalan2 reply, had not returned by which tau mo:)
$ Pwd
/ Home / spyrokid
--------------
ps
--------------
Displays the active processes
$ Ps
PID TTY STAT TIME COMMAND
87 2 S 0:00-bash
88 3 S 0:00-bash
1440 2 S 0:00 pico jilid2.txt
1443 3 R 0:00 ps
--------------
ping
--------------
Checking whether host 'up' to please the technical term 'man ping'
$ Ping localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq = 0 ttl = 64 time = 0.2 ms
64 bytes from 127.0.0.1: icmp_seq = 1 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 2 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 3 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 4 ttl = 64 time = 0.1 ms
--- Localhost ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min / avg / max = 0.1/0.1/0.2 ms
spyrozone: ~ $ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq = 0 ttl = 64 time = 0.2 ms
64 bytes from 127.0.0.1: icmp_seq = 1 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 2 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 3 ttl = 64 time = 0.1 ms
64 bytes from 127.0.0.1: icmp_seq = 4 ttl = 64 time = 0.1 ms
--- 127.0.0.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min / avg / max = 0.1/0.1/0.2 ms
spyrozone: ~ $
Note that localhost and 127.0.0.1 are the same:)
127.0.0.1 is local loopback is provided for testing.
--------------
finger
--------------
Search for user information
$ Finger
Login Name Tty Idle Login Time Office Office Phone
spyrokid Spyrokid November 2 22 01:10
spyrokid Spyrokid November 3 22 01:10
root 1 Nov 22 01:10 1:37
$ Finger@spyrozone.net
[Spyrozone.net]
Welcome to Linux version 2.0.34 at spyrozone.net!
3:46 pm up 2:37, 3 users, load average: 0.00, 0:00, 0:00
Login Name Tty Idle Login Time Office Office Phone
spyrokid Spyrokid November 2 22 01:10
spyrokid Spyrokid November 3 22 01:10
root 1 Nov 22 01:10 1:39
spyrozone: ~ $ finger @ localhost
[Localhost]
Welcome to Linux version 2.0.34 at spyrozone.net!
3:47 pm up 2:38, 3 users, load average: 0.00, 0:00, 0:00
Login Name Tty Idle Login Time Office Office Phone
spyrokid Spyrokid November 2 22 01:10
spyrokid Spyrokid November 3 22 01:10
root 1 Nov 22 01:10 1:40
spyrozone: ~ $ finger spyrokid
Login: spyrokid Name: Spyrokid
Directory: / home / spyrokid Shell: / bin / bash
On since Thu Nov 22 01:10 (PHT) on tty2 8 seconds idle
On since Thu Nov 22 01:10 (PHT) on tty3
Last login Mon Nov 22 01:13 (PHT) on tty4
Mail forwarded to "| IFS = '' & & exec / usr / bin / procmail-f-| | exit 75
# Spyrokid "
No mail.
No Plan.
spyrozone: ~ $ finger root
Login: root Name:
Directory: / root Shell: / bin / bash
On since Thu Nov 22 01:10 (PHT) on tty1 1 hour 42 minutes idle
Mail last read Tue Nov 15 09:19 2004 (PHT)
No Plan.
--------------
ftp
--------------
Using a file transfer program.
spyrozone: ~ $ ftp localhost
Connected to localhost.
Spyrozone.net 220 FTP server (Version wu-2.4.2-academ [BETA-15] (1) Sun
May 20 13:45:04 CDT 2004) ready.
Name (localhost: spyrokid): ftp
331 Guest login ok, send your complete e-mail address as password.
Password: spyrokid@spyrozone.net
230-Welcome, archive user! ...
.............
...........................
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
ftp can also be done by doing a telnet to port 21
spyrozone: ~ $ telnet localhost 21
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
Spyrozone.net 220 FTP server (Version wu-2.4.2-academ [BETA-15] (1) Sun
May 20 13:45:04 CDT 2004) ready.
--------------
talk
--------------
Talking with other users, for example spyrokid request to talk to the root:
root talk
or
talk root@spyrozone.net
[Waiting for your party to respond]
[Ringing your party again]
In the root terminal message may be displayed:
Message from Talk_Daemon @ spyrozone at 4:00 ...
talk: connection requested by spyrokid @ localhost.
talk: respond with: talk spyrokid @ localhost
must type root @ localhost spyrokid talk if you want to answer the request
talk spyrokid @ localhost
[Connection established]
Press Ctrl + C to terminate the connection.
--------------
telnet
--------------
To communicate with other hosts via telnet protocol.
spyrozone: ~ $ telnet localhost
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
Welcome to Linux 2.0.34.
spyrozone login: spyrokid
Password: www.spyrozone.net
Linux 2.0.34.
Last login: Tue Nov 22 01:13:52 on tty4.
No mail.
spyrozone: ~ $ telnet localhost 25
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
220 spyrozone.net ESMTP Sendmail 8.9.0/8.9.0; Tue, November 22, 2004
03:52:51 +0800
helo darling
250 spyrozone.net Hello spyrokid @ localhost [127.0.0.1], pleased to
meet you
mail from: guest@spyrozone.net
250 guest@spyrozone.net ... Sender ok
rcpt to: untukmu@seorang.jauh.disana
250 untukmu@seorang.jauh.disana ... Recipient ok (will of the queue)
data
354 Enter mail, end with "." on a line by Itself
I sent the song and longing greetings
.
250 EAA01615 Message accepted for delivery
quit
spyrozone: ~ $ telnet localhost 110
Trying 127.0.0.1 ...
Connected to localhost.
Escape character is'^]'.
Spyrozone + OK POP3 Server (Version 1.005l) ready at
root user
+ OK please send PASS command
pass www.spyrozone.net
+ OK 2 messages ready for root in / usr / spool / mail / root
stat
+ OK 2 7227
retr 1
quit
Okay, so first introduction, for then you can explore yourself with the man command.
yupz.. semoga bermanfaat kang :)
ReplyDelete