Ls Ls A Mkdir CD Directory CD CD CD .. PWD: Command File
This document provides a summary of basic Linux commands for listing, viewing, copying, moving, deleting files and directories, redirecting input/output, and getting system information. It explains commands for listing contents of the current directory and navigating the file system, copying/moving/removing files, viewing file contents, searching files for keywords, and counting file elements. Pipelines and file concatenation are also covered.
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
66 views
Ls Ls A Mkdir CD Directory CD CD CD .. PWD: Command File
This document provides a summary of basic Linux commands for listing, viewing, copying, moving, deleting files and directories, redirecting input/output, and getting system information. It explains commands for listing contents of the current directory and navigating the file system, copying/moving/removing files, viewing file contents, searching files for keywords, and counting file elements. Pipelines and file concatenation are also covered.
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2
ls list files and directories
lsa list all files and directories
mkdir make a directory
cddirectory change to named directory
cd change to home directory
cd~ change to home directory
cd.. change to parent directory
pwd display the path of the current directory
cpfile1file2 copy file1 and call it file2
mvfile1file2 move or rename file1 to file2
rmfile remove a file
rmdirdirectory remove a directory
catfile display a file
morefile display a file a page at a time
headfile display the first few lines of a file
tailfile display the last few lines of a file
grep'keyword'file search a file for keywords
wcfile count number of lines/words/characters in file
command>file redirect standard output to a file
command>>file append standard output to a file command<file redirect standard input from a file pipe the output of command1 to the input of command1|command2 command2 catfile1file2> file0 concatenate file1 and file2 to file0