command line Flashcards
like dir in dos
LS
for going inside a folder
cd
shows where are you new
pwd
for making a directory
mkdir (name)
for removing a directory rmdir (name)
rmdir (name)
for editing a text
nano
for view inside your file
cat
to move the file
mv
to copy the file
cp
for making a new file i.e. touch name.txt
touch name.txt
for sorting inside your text file
sort name.txt
for reverse sorting
sort -r *.txt
for sort and make copy from your file
sort *.txt >newname.txt
for sorting and reverse the number
sort -n sort -n - r
for sorting and reverse the month
sort -m sort -m - r
for shotdown
sudo halt
for restart
sudo reboot
for search in your memory
find
for search inside a file
grep i.e. grep name address
for find ip
ifconfig
what is the rwx and how you can change it ?
r is 4 - w is 2 - x is 1 sum of theme is 7
for change it chmod ### file or folder name
LS with detail
ls -l