Skip to main content

Unix Commands


Command Description
ls list directory (ls -la bin)
cd change directory (cd $HOME)
pwd print working directory
mkdir create directory
rm remove file/directory
rmdir remove empty directory
mv move/rename file/directory (mv output ~/data/)
cp copy file/directory (cp -r output ~/data/)
chmod change file access properties (chmod u+x run_app.sh)
find find a file (find . -name "*.dat")
less, more page-wise display of file (less README.txt)
cat display contents of a file (cat input.txt)
echo print text to stdout (echo $PATH)
grep find text pattern in file (grep result output.txt)
file determine file type
ps display running processes (ps -elf)
kill kill a process (kill -9 59582)
top display table of processes, to quit press q