linux
linux command.png
linux command
-
pwd
: print working directory -
mkdir
: make directory
mkdir project
# store bioinformatics project -
ls
: list either files or content -
rm
: remove -
cd
: enter this content cd -: return to previous content -
vi
: create new text file
vi new_file.txt
# press i, then type text, then press Esc,
:x
# save and exit -
cat new_file.txt
: show file.
head
# show first 10 row.tail
#show last 10 row.
head -3
# show first 3 row. -
cp
: copy file
cp new_file.txt second_file.txt
#copy new_file.txt and save as second_file.txt -
mv
: move file to folder, or rename
mv second_file.txt project
# move second_file.txt to project
mv second_file.txt home.txt
# rename to home.txt