| | | | | linguist.page@gmail.com

Create a new directory

Type here
mkdir foldername

Create nested directories at once

Type here
mkdir -p corpora/arabic/raw

Remove an empty directory

Type here
rmdir foldername

Create an empty file

Type here
touch filename.txt

Copy a file

Type here
cp source.txt destination.txt

Copy a directory recursively

Type here
cp -r sourcedir destinationdir

Move or rename a file

Type here
mv oldname.txt newname.txt

Move a file to another directory

Type here
mv filename.txt /path/to/destination/

Remove a file

Type here
rm filename

Remove a directory and its contents recursively

Type here
rm -rf foldername
Type here
ln -s /path/to/original linkname

Display file type information

Type here
file filename