#Syntax for creating files
echo "Content here" > filename
# Append findme into the current file.
echo "findme" >> file.txt
# Replace anything which was earlier in the file.
echo "nothinghere" > file.txt
In terminal text editor
# Syntax
touch [OPTION]... FILE...
# Create an empty file using the name and location specified
touch file1
# We can also create multiple files at the same time. We can use absolute paths as well.
touch /home/demo/file2 /home/demo/file3
GUI text editor
# Create an empty file using the name and location specified
nano newfile.txt
# Create an empty file using the name and location specified
mousepad newfile.txt
# Syntax
cat [OPTION]... [FILE]...
# To display the full content of a file
cat filen.txt
# Syntax
more [options] [file]
# To see more portions of the document than less command options
more file.txt
#Syntax
less [options] [filename]
# To see the portion of the document that fits in the area of the terminal window
less /etc/services
# Syntax
nano [options] [filename]
# Open existing files, or create a file
nano file1
# Syntax
locate [OPTION]... PATTERN
To find files on filesystems.
locate new.txt
# Syntax
which [OPTIONS] COMMAND
which aircrack-n
find [-H] [-L] [-P] [-D debugopts] [-Olevel] [starting-point...] [expression]
# Make a new copy of an existing file
cp file3 file4
# Moving and Renaming Files and Directories
mv file1 test