0% found this document useful (0 votes)
29 views6 pages

All Basic Linux Commad.

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views6 pages

All Basic Linux Commad.

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

Linux Command List (107)

Day 1:

File and Directory Management completed.

 ls — List directory contents.

 cd — Change directory.

 pwd — Print working directory.

 mkdir — Create a directory.

 rmdir — Remove an empty directory.

 rm — Remove files or directories.

 cp — Copy files or directories.

 mv — Move or rename files or directories.

 touch — Create an empty file or update file timestamps.

 find — Search for files and directories.

 basename — Extract the file name from a path.

 dirname — Extract the directory part of a path.

Day 2

File Viewing/Editing

 cat — Concatenate and display file contents.

 more — View file contents (paginates).

 less — View file contents (paginates with navigation).

 head — View the first few lines of a file.

 tail — View the last few lines of a file.

 vi or vim — Advanced text editor.

 awk — Pattern scanning and processing.

 sed — Stream editor for modifying files.

 cut — Remove sections from lines of text.


 sort — Sort lines of text.

 uniq — Filter duplicate lines.

Day 3

File Permissions

 chmod — Change file permissions.

 chown — Change file owner and group.

 chgrp — Change group ownership of a file.

 setfacl — Set Access Control Lists (ACLs).

 getfacl — Display Access Control Lists (ACLs).

 umask — Set default permissions for new files.

Day 4

System Information

 uname — Print system information.

 top — Display running processes.

 ps — View active processes.

 df — Display disk space usage.

 du — Display file/directory space usage.

 free — Display memory usage.

 uptime — Display system uptime.

 hostname — Show or set system’s hostname.

 lsof — List open files.

 env — Display environment variables.

 export — Set or export environment variables.

 echo — Print text or variables.

Day 5
Networking

 ping — Send ICMP echo requests to a host.

 ifconfig or ip — Display or configure network interfaces.

 netstat — Display network connections.

 curl — Transfer data from or to a server.

 wget — Download files from the web.

 scp — Securely copy files between hosts.

Day 6

Package Management

 yum update — Update all installed packages to their latest available versions.

 yum updateinfo — Display information about package updates (enhancements, bug fixes,
security updates).

 yum update --security — Apply only security updates to installed packages.

 yum check-update — Check for available package updates without installing them.

 yum upgrade — Upgrade packages, including obsolete ones.

 dnf update — Update all installed packages (YUM successor).

 dnf check-update — Check for available updates.

 dnf upgrade — Perform an update and handle obsolete packages.

 dnf updateinfo — View update details like bug fixes or security patches.

 apt-get update — Update the package list from repositories.

 apt-get upgrade — Upgrade installed packages to the newest versions.

 apt-get dist-upgrade — Perform a distribution upgrade (handles dependency changes).

 apt-get autoremove — Remove unnecessary packages and dependencies.

 apt-get clean — Clear cached files from the package repository.


Day 7

Disk Management

 lsblk — List information about block devices.

 fdisk — Partition a disk.

 mount — Mount a filesystem.

 umount — Unmount a filesystem.

 fsck — File system consistency check and repair.

 blkid — Locate/print block device attributes.

 parted — Create and manage disk partitions.

 mkfs — Create a new filesystem.

 swapoff — Disable swap space.

 swapon — Enable swap space.

Day 8

User Management

 useradd — Add a new user.

 usermod — Modify user information.

 userdel — Delete a user.

 passwd — Change user password.

 whoami — Display current logged-in user.

 id — Show user and group IDs.

 groups — Show groups for a user.

 who — Show currently logged-in users.

 last — Show last logins of users.

 finger — Display user information.

Day 9

Process Management

 kill — Terminate a process by ID.


 killall — Terminate a process by name.

 bg — Resume a job in the background.

 fg — Bring a job to the foreground.

 jobs — List active jobs.

Day 10

Archiving and Compression

 tar — Archive files.

 gzip — Compress files.

 gunzip — Decompress files.

 zip — Package and compress files.

 unzip — Extract compressed files.

Day 11

Search

 grep — Search for a pattern in files.

 find — Search for files in a directory hierarchy.

 locate — Find files by name.

 which — Locate a command.

 whereis — Locate the binary, source, and manual page for a command.

 xargs — Build and execute command lines from standard input.

Day 12

System Shutdown and Reboot

 shutdown — Shut down or reboot the system.

 reboot — Reboot the system.

 halt — Stop the system.

 poweroff — Power off the system.

 init 6 — Reboot the system.


 init 0 — Shut down the system.

Day 13

Command Chaining and Redirection

 | — Pipe output of one command as input to another.

 > — Redirect output to a file (overwrite).

 >> — Redirect output to a file (append).

 < — Redirect input from a file.

 2> — Redirect standard error to a file.

 &> — Redirect both standard output and error to a file.

 tee — Redirect output to both a file and the terminal.

 ; — Execute multiple commands sequentially.

 && — Execute the next command only if the previous one succeeds.

 || — Execute the next command only if the previous one fails.

You might also like