Skip to content
This repository was archived by the owner on Feb 1, 2026. It is now read-only.

cyril-p-jose/Linux-basic-commands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

Linux Basic Commands


1. pwd

Shows the current working directory.

pwd

2. ls

Lists files and directories.

ls

3. ls -l

Lists files with detailed information.

ls -l

4. ls -a

Shows hidden files.

ls -a

5. cd

Changes the current directory.

cd folder_name

6. cd ..

Moves one directory up.

cd ..

7. mkdir

Creates a new directory.

mkdir new_folder

8. rmdir

Deletes an empty directory.

rmdir folder_name

9. touch

Creates an empty file.

touch file.txt

10. cp

Copies a file.

cp source.txt destination.txt

11. cp -r

Copies a directory.

cp -r folder1 folder2

12. mv

Moves or renames a file.

mv old.txt new.txt

for rename file

mv old.txt /path/to/destination /

for move file

13. rm

Deletes a file.

rm file.txt

14. rm -r

Deletes a directory.

rm -r folder_name

15. grep

Searches for a specific string in files.

grep "specific string" filename.txt
grep -i "specific string" filename.txt

Case-insensitive search

16. history

Displays the command history.

history

17. cat

Displays file contents.

cat file.txt

18. clear

Clears the terminal screen.

clear

19. man

Shows the manual of a command.

man ls

20. echo

Prints text to the terminal.

echo "Hello Linux"

21. chmod

Changes file permissions.

chmod 755 file.sh

22. chown

Changes file ownership.

chown user file.txt

23. uname

Displays system information.

uname -a

24. df

Shows disk usage.

df -h

25. free

Displays memory usage.

free -h

26. top

Shows running processes.

top

27. ps

Displays running processes.

ps

28. kill

Stops a process.

kill PID

29. whoami

Shows current user.

whoami

30. history

Shows command history.

history

31. grep

Searches text in files.

grep "text" file.txt

32. find

Searches for files.

find . -name file.txt

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors