Bash Commands
"Bash" What is this bash?
Well, It is a bit different name though, if we want to work with Linux, we have to learn bash commands. I think you all have heard about Linux. (Linux is a family of open-source Unix- like operating system WIKI.)
So, Let's discover commands....
Open your command prompt or bash . We use command prompt or bash to interact with the computer.
List Commands : ls
Use to list all the file or folders inside the current directory.
Changed Directory: cd
use to go from one directory to next directory
Clear Page : clear
To clear current messy prompt or bash
Exit: exit
To exit the prompt or bash
FOLDER/DIRECTORY
Create Folder : mkdir Remove Directory
eg: mkdir "01 Sample" eg: rmdir 01\Sample/(without Quotations)
FILE
If you want to crate a file or need to work with a file, here it is...
Create File Remove File Edit File
touch "filename".extention rm "filename" nano Sample.dox
eg: touch Sample.txt rm Sample.txt (add content)
eg: open index.html (for html files) control+s
Yes
echo -e,-n [strings] # Print text to the terminal
grep [options]pattern[file] # Print lines matching a pattern
man [keyword] #Find command in your manual
This is a cheat sheet for absolute beginners. Try to do it.
More practice deliver more skills..
No comments:
Post a Comment