In my previous post, I explained How to create a Linux development environment on Windows 10.
The shell prompt (or command line) is where one types commands in. When accessing the system through a text-based terminal, the shell is the main way of accessing programs and doing work on the system. In effect, it is a shell surrounding all other programs being run.
Getting Started
apropos
– used to find availble commands:$ apropos "list dir"
man
– read command manuals:$ man apropos
-h
– command parameter giveing help: :$ man -h
history
– command line history:$ history
File System
l
– list information about files:$ l
mkdir
– makes a directory:$mkdir code
cd
– changes a directory:$cd code
touch
– makes empty a file:$ touch file1.txt
echo
– puts text in a file:$ echo 'Steven Fowler' > file2.txt
cat
– concatenates files:$ cat file1.txt file2.txt > file3.txt
cp
– copy files:$ cp -f *.txt backup/
rm
– remove file or directory:$ rm -f *.txt
mv
– move files:$ mv backup/* .
more
– reads a file:$ more file1.txt
find
– find files:$ find . -name file1.txt
grep
– find text in file(s):$ grep 'Steve' *.txt
Where to go from here
Essential Linux Command Line Tools
Why Python is the best development language