Skip to content

CodeWithTaskin/All-Linux-commends

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

All Linux commend

Linux

File Management

File Management

  1. ls: List directory contents.
ls
  1. cd: Change directory.
cd [directory_path]
  1. pwd: Print working directory.
pwd
  1. cp: Copy files or directories.
cp [source] [destination]
  1. mv: Move/rename files or directories.
mv [source] [destination]
  1. rm: Remove/delete files or directories.
rm [file_or_directory]
  1. mkdir: Create a directory.
mkdir [directory_name]
  1. rmdir: Remove an empty directory.
rmdir [directory_name]
  1. touch: Create an empty file or update file timestamp.
touch [file_name]
  1. cat: Concatenate and display the content of files.
cat [file_name]
  1. nano: A simple text editor.
nano [file_name]
  1. vim: A powerful text editor.
vim [file_name]
  1. man: Display the manual pages for commands.
man [command]
  1. chmod: Change file permissions.
chmod [permissions] [file]
  1. chown: Change file owner and group.
chown [owner:group] [file]
  1. find: Search for files and directories.
find [directory] -name [filename_pattern]
  1. grep: Search for patterns in files.
grep [pattern] [file]
  1. tar: Create or extract compressed archive files.
tar -cvf [archive_name.tar] [files/directories]
tar -xvf [archive_name.tar]
  1. gzip: Compress or decompress files.
gzip [file]
  1. gunzip: Decompress files.
gunzip [file.gz]
  1. awk: A versatile pattern scanning and processing language.
awk [options] 'pattern {action}' [file]
  1. sed: Stream editor for filtering and transforming text.
sed [options] 's/pattern/replacement/' [file]
  1. zip: Create a compressed archive.
zip [options] archive_name.zip [files/directories]
  1. unzip: Extract files from a compressed archive.
unzip [options] archive_name.zip
  1. du: Display file and directory space usage.
du [options] [directory]
  1. df: Display disk space usage.
df [options]
  1. file: Determine file type.
file [options] file_name
  1. ln: Create hard or symbolic links.
ln [options] source [link_name]
  1. basename: Strip directory and suffix from filenames.
basename [options] file_name
  1. dirname: Strip last component from filenames.
dirname [options] file_name

These commands cover various miscellaneous utilities in Linux. Always consult the respective man pages for detailed information and options for each command (man ).

System Information

System Information

  1. uname: Display system information.
uname [options]
  1. hostname: Show or set the system's host name.
hostname [options]
  1. lsb_release: Display distribution-specific information.
lsb_release [options]
  1. uptime: Display system uptime.
uptime
  1. date: Display or set the system date and time.
date [options]
  1. cal: Display a calendar.
cal [options]
  1. whoami: Display current username.
whoami
  1. w: Show who is logged on and what they are doing.
w [options]
  1. finger: Display user information.
finger [username]
  1. ps: Display information about running processes.
ps [options]
  1. top: Display system processes in real-time.
top
  1. htop: Interactive process viewer.
htop
  1. free: Display amount of free and used memory in the system.
free [options]
  1. vmstat: Display virtual memory statistics.
vmstat [options]
  1. lscpu: Display information about the CPU architecture.
lscpu
  1. lsblk: Display block device information.
lsblk [options]
  1. df: Display disk space usage.
df [options]
  1. du: Display file and directory space usage.
du [options]
  1. ifconfig: Display network interface information (deprecated, use ip).
ifconfig [interface]
  1. ip: Display and manipulate routing, devices, policy routing, and tunnels.
ip [options] [object] [command]
  1. route: Show or manipulate the IP routing table.
route [options]
  1. ss: Display socket statistics.
ss [options]
  1. lsof: List open files.
lsof [options]
  1. netstat: Display network statistics.
netstat [options]
  1. iwconfig: Configure wireless network interfaces.
iwconfig [options]
  1. uname -a: Display all available system information.
uname -a
  1. cat /proc/cpuinfo: Display detailed CPU information.
cat /proc/cpuinfo
  1. cat /proc/meminfo: Display detailed memory information.
cat /proc/meminfo
  1. ls /proc: Explore various system information available in the /proc directory.
ls /proc
  1. dmesg: Display or control the kernel ring buffer.
dmesg [options]

These commands cover various miscellaneous utilities in Linux. Always consult the respective man pages for detailed information and options for each command (man )

.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published