Linux_Commands_Beginner
Linux_Commands_Beginner
details.
directory.
mkdir - Creates a new directory. Example: mkdir project creates a folder named
'project'.
directories.
file2.txt.
old.txt to new.txt.
touch - Creates an empty file. Example: touch file.txt creates a blank 'file.txt'.
cat - Displays file contents. Example: cat file.txt shows the content of 'file.txt'.
echo - Displays a line of text. Example: echo 'Hello World!' outputs 'Hello World!'.
grep - Searches for patterns in files. Example: grep 'error' log.txt finds 'error' in
log.txt.
find - Searches files and directories. Example: find / -name file.txt looks for 'file.txt'.
chmod - Changes file permissions. Example: chmod 755 script.sh sets the file
permission.
usage.
du - Shows directory size. Example: du -sh /home gives the size of /home.
tar - Archives files. Example: tar -cvf archive.tar file.txt creates an archive.
curl - Fetches data from URLs. Example: curl http://example.com downloads the
page content.
scp - Securely copies files between servers. Example: scp file.txt user@host:/path
transfers file.txt.