A Collection Of Basic Linux Command Is Often Used

In a post this time I will write about some of the basic command in linux. Well, the command? That is to say what is it? nothing ... Here is the syntax of the command-syntax commands used for mutual interaction between user and computer. still confused? this, friends maybe from who are familiar with the Windows never know whose name the CMD (Command Prompt). Well the commands like cd, dir, del, etc that is called command.

It is that on Windows, what about Linux? Of course there is. .. For those who want to learn the basic command on linux, sy recommend to read until right. Oke, without much more it-this Let's start lessons this time. To get started, first open a Terminal. Press [CTRL] + [ALT] + [T], for a moment then window will appear with a black background color and white. Well it is called Terminal. Then how to incorporate his command? of course with how to type directly in this window and press [ENTER] to execute his orders.

These are some examples of basic commands in Linux Terminal:

the CD, move the folder/directory

CD Directory/directory to the directory move → residing in the directory now
CD → moving to home directory
CD ~ → moving to home directory
CD. → moving one directory to the top directory or return to a previous directory
CD. /.. /n → moved n the previous directory
CD/directory/some → move to the directory without having to fall back to the previous directory. Will be moved if that directory exists and its directory name correct writing

ls, view a list of files

ls → lists files in the current directory are now without any attributes
ls-l shows → list of files along with attributes such as owner, permissions, size and modification date
ls-a → lists of files and hidden files in the directory are now without any attributes
ls-al command-option combines → l and ls-a to
/directory/some → ls lists files from/directory/some when we were in the directory now.

CP, copy a file or folder and the folders must be already made. If you haven't yet made then the file will be copied with a new name.

CP file/path/to/directory/some → copying certain files to the specified directory
CP-r/path/to/directory/some → folder to copy specific folders recursively to the specified directory
CP *./path/to/directory/some extension → copy file – file with extension specific to the particular directory
CP name */path/to/directory/some→ copy file – a file whose name starts with ' name ' to a specific directory

MV, move the file or folder and rename the file

MV has a way of working that is almost the same as with cp
MV move files or folders, while cp to copy a file or folder

RM, delete files or folders

RM file → delete files from the file system
RM-r folder → delete folders from the file system
rm-rf folder → forcibly deleting folders from the file system

mkdir, create a folder

mkdir directory → make a directory in the file system

PS, see the list of running processes

ps aux → view the list of running processes with more detail

Paint, see the contents of a file

man, look at the manual from a command shell

man command → see detailed manual of the use of a command

pwd, print directories are now

whoami, see who is currently logged in

reboot, restarting your operating system

halt, stop all processes and shutting down the operating system functional from a computer that is used

exit, logout of your account that is being used

Related Posts:

0 Response to " A Collection Of Basic Linux Command Is Often Used"

Post a Comment