adduser
Usually only performed by the root user or account to add a new reply. After this command can be continued with the passwd command, the command to create a password for that user.
# adduser fandi
# passwd idnaf
Next you will be prompted to enter the password for the user fandi. Fill in the password to fandi twice with the same word.
alias
Used to give another name of a command. For example, if you want the ls command can also be run by typing the command dir, then make the following aliases:
$ alias dir = ls
To see what commands are to have another name at the time, simply type alias. See also the unalias command.
&
Commands and other commands used behind and run in the background. The goal is to free the shell that can be used to run other processes. See also commands bg and fg.
bg
To force a process that is stopped temporarily (suspend) to run in the background. Suppose you're running a command in the foreground (without ending the command &) and a shell when you need it then you can suspend the command by typing Ctrl-Z then bg command to menjalakannya in the background. This way you have membebaskanshell but still maintaining the long-running commands in the background. See also command fg.
cat
Displays the contents of a file on the screen.
$ cat <filename>
cd
Change Directory or to move directories and I guess you will have no trouble using this command as a way similar to its use cd command in DOS.
chgrp
This command is used to change the group ownership of files or directories. For example, to give permission to the group or groups in order to access a file. Writing syntax is as follows:
# chgrp <New group> <file>
chmod
Used to add and subtract users permission to access the file or directory. You can use the numeric coding system or letter coding system. There are three types of permissions / licensing that can be changed is r for read, w for write and x for execute.
By using letter coding, you can change the permissions above for each u (user), g (group), o (other) and a (all) by just giving the plus sign (+) to add licenses and minus sign (-) to revoke the license.
For example, to give read and execute permission to the file owner and group coba1, the command is:
$ chmod ug + rx coba1
To revoke these licenses:
$ chmod ug-rx coba1
By using sitem numeric coding, untukuser permissions, group and the other is determined by using a combination of numbers, 4, 2 and 1 where 4 (read), 2 (write) and 1 (execute).
For example, to grant read (4), write (2) and execution (1) file coba2 to the owner, the command is:
$ chmod 700 coba2
Another example, to give permission to read (4) and write (2) coba3 file to the user, see (4) only to the group and the other, the command is:
$ Chmod 644 coba3
chown
Change the user ID (owner) of a file or directory
$ chown <user ID> <file>
cp
To copy a file or copy. For example, to copy file1 to file2:
$ cp <file1> <file2>
fg
Restoring a process is stopped temporarily (suspend) to run again in the foreground. See also the bg command above.
find
To find where the location of a file. This command will search for files that match the criteria you specify. The syntax is the command itself followed by the name of the starting directory search, then the name of the file (can use wildcards, metacharacters) and finally determine how the search results will be displayed. For example, to search for all files ending in. Doc in the current directory and display the results on the screen:
$ Find. -name *. doc-print
. / public / docs / mikrotik.doc
. / public / docs / VPN.doc
. / public / docs / stats / visualstudio.doc
. / public / docs / stats / presconf.doc
To be continued...
0 comments:
Post a Comment