Linux Commands
Linux Commands

uname command
It prints certain system information about a computer's software and hardware.
- uname -a :- It prints all the information - the name of the kernel, network node host name, kernel version number and release level, kernel release date, machine hardware name, CPU (central processing unit) type, hardware platform and operating system name.
- uname -s :- It prints the kernel name.
- uname - n :- It prints the network node hostname.
df command
It displays amount of disk space available on the file system.
free command
It displays the total amount of free and used physical and swap memory in the system.
ps command
It displays information about a selection of active processes that are currently running on your computer.
- ps :- It displays processes running on terminal.
- ps -e :- It displays processes running on the whole computer.
- ps -ef :- It displays the full format listing.
top command
It provides a dynamic real-time view of a running system.
pwd command
It is used for printing the current working directories. It will print the full standard path of the current working directory.
ls command
It is used to list the contents or files of a directory.
- ls -l :- It gives a long listing information about the files or content present inside a directory.
- ls -a :- It shows all of the hidden files in the directory.
- ls -t :- It sorts the content or files according to the time. The last modified file comes first.
cd command
It is used to change the current directory.
- cd / :- It is used to change the current directory to the root directory.
- cd .. :- It is used to change the directory to the one level up directory.
- cd ~ :- It is used to change the directory to the home directory.
cat command
It stand for concatenate command. It allows us to create single or multiple files, view contain of file, concatenate files and redirect output in terminal or files.
- cat filename :- It is used to view the content of single file.
- cat >filename :- It will create a new file of name filename.
- cat file1>>file2 :- It is used to append the content of one file to the end of another.
nano command
It is a command line text editor. It can be used to create or edit a file.
Syntax :- nano filename
touch command
This command is used to create a empty file.
Syntax :- touch filename
cp command
This command is used to copy files and directories.
cp file1 file2 :- It will copy the content of file1 into file2.
rm command
This command is used to delete or remove the files.
Syntax :- rm filename
rm -r :- It is used to remove or delete directories.
ln command
This command is used to link two files. Now, when we will modify one file then the other file will automatically change.
mv command
This command is used to move files or directories from one place to another.
Syntax :- mv file1 /home/rathi/Pictures
mkdir command
This command is used to create directories.
Syntax :- mkdir dirname
Really made my work easy. Thanks Passable Blogs for such amazing content.
ReplyDeleteAlso your ubuntu installation post was amazing. You have worked really hard. ������������
It s useful💯💯😍
ReplyDeleteIt's relatable
ReplyDelete