0% found this document useful (0 votes)
29 views1 page

Linux Basics for Beginners

Uploaded by

Devesh yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views1 page

Linux Basics for Beginners

Uploaded by

Devesh yadav
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Advanced Lunix

Lab 1.0
20 basic linux commands

1. pwd --> This will show the current path

2. ls --> this will so the files in a directory

3. sudo -i --> this command will give superuser permission to the current user

4. cd <directory> -> to get in a directory

5. cd .. -- > to get out of the current folder

6. mkdir -->To make a new lauda

7. halt --> To shutdown the system

8. mv <file_name1> >file_name2> --> to change the name of a file

9. rm --> To delete a file

10. touch <file_name> -->Create a file if not exist otherwise it will update the time stamp

11. cat <file_name> --> To show the content of the file in the command line

12. chmod +x <file_name> --> To give read write and execute permission to a file

13. hostname --> Show the current host name

14. ifconfig --> is used for displaying current network configuration information, setting up an ip
address, netmask or broadcast address to an network interface

15. df --> This commands reports file system disk space usage.

16. du --> Estimates file space usage. It has various options to display the output in the format
you desire.

17. cp <file_name> <path> --> To copy a file

18. rmdir <directory path> --> To delete a directory

19 df --> This commands reports file system disk space usage.

20. clear --> This command is used to clear the terminal screen

You might also like