0% found this document useful (0 votes)
5 views

Notes

NOTES

Uploaded by

Chanky Singh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views

Notes

NOTES

Uploaded by

Chanky Singh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Waheguruji

4 Mayy 2024

Linux platform
oneworks
killercoda.com

Commands
mkdr : make directory
cd: Change directory eg cd abc.txt /home/ubuntu/
.. : move to home directory
pwd: present work directory
ls: list
touch: to create file
cat: to open/read the file
Nano file.txt to open create a file in nano text editor
ctrl +x to exit the editor.
clear: to clear every text from terminal only not files
:w to save file
:q to exit the insert editor
Press I to switch to insert mode as by default it is cmd mode
we can use VI (ADVANCE VERSION OF NANO) is Similar to NANO COMMAND.

COPY FILE : cp <file name> <destination folder> eg. cp abc.txt d1


copy folder: cp -r copy_folder destination folder eg. cp -r a1 d1
move file: mv abv.txt <destionation folder>

to move and rename at same time: mv <existing file name> <folder>/<new name> eg mv
abc.txt b1/index.txt

HISTORY : TO CHECK the commands used in the past day.

to delete a file : rm rajj.txt


directory delete: rmdir to remove empty directory
rm -r to delete non emplty directory
to delete everything: rm -r *

2024-05-12 10:09:14.717

You might also like