Basic Linux Commands
ls - (list the content)List the contents of the folder, be it file or folder, from which it runs.
ls -l
list the content of the folder with the details like size and date
ls -a
list the content of the folder with the hidden files.
mkdir - make directory
command used to create directory with the name.
If the directoy exists it will return error message like folder already exist.
chmod - change file mode bits
chmod changes the file mode (permission) of each given file, folder, script, etc.. according to mode asked for.
There are 3 types of permission on a file(Read,Write,Execute)
if you want to give only read permission on a file it will be assigned a value of ‘4‘
and for write permission on a file it will be assigned a value of "2" and for execute on a file it will be assigned a value of "1".
And permission need to be set for 3 kinds of user,usergroup and world.
chown - change owner
This “chown” command is used to change the file ownership and thus is useful in managing and providing file to authorised user and usergroup only.
apt -Advanced package tool
Apt is an advanced package manager for Debian based system (Ubuntu, Kubuntu, etc.), that automatically and intelligently search, install, update and resolves dependency of packages on Gnu/Linux system from command line.
tar - Tape Archive
The “tar” command is a Tape Archive is useful in creation of archive, in a number of file format and their extraction.
cal - Calender
The “cal” it is used to displays calendar of the present month or any other month of any year that is advancing or passed.
date - Date
Date command print the current date and time on the standard output
cat - Concatenation
The “cat” stands for (Concatenation). join two or more plain file and print contents of a file .
cp -copy
The “copy” stands for (Copy), it copies a file from one location to another location.
mv-move
pwd-print working directory
The command “pwd” (print working directory), prints the current working directory with full path name from terminal.
cd-change directory
cd command stands for (change directory), it change the working directory to execute, copy, move write, read, etc.
No comments:
Post a Comment