Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
41 views

Basic Commands

This document provides summaries for various Linux commands: It lists commands for displaying the date, user information, calendar, system uptime, disk and memory usage, changing directories, searching files, editing files, managing files and directories, copying and moving files, checking processes, managing users, and networking tasks. Common options and examples are provided for commands like ls, cat, grep, cp and ifconfig to demonstrate their functionality.

Uploaded by

imtiyaz beigh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
41 views

Basic Commands

This document provides summaries for various Linux commands: It lists commands for displaying the date, user information, calendar, system uptime, disk and memory usage, changing directories, searching files, editing files, managing files and directories, copying and moving files, checking processes, managing users, and networking tasks. Common options and examples are provided for commands like ls, cat, grep, cp and ifconfig to demonstrate their functionality.

Uploaded by

imtiyaz beigh
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

date // to display the current date

who // to provide details about currently loggined user


whoami //to display the currently logined user name
man //to provide manual
clear // to clear commands from terminal
pwd // to show present working directory
cal cal 2028 cal 11 2023 // to display calendar
uptime //uptime of system
df //show disk usage
du //show directory space usage
free //show memory and swap usage
passwd / to set/reset password
ls ls -a ls -l ls -al //to show content of files and directories
cat>hello.txt //to create a text file
cat hello.txt //to view content of file
cat>hello.txt //to rewrite into a file
cat>>hello.txt //to append the file
cat file1.txt file2.txt > file3.txt //to add content of two files to single
ctrl +d //to save file content
touch //to create empty file
rm //to remove file or directory
cd cd .. //to change directory
grep pattern filename //to search for a pattern in a file
gedit //to edit the file graphically
mkdir //to create a directory
rmdir //to del empty dir
rm -rf dirname //to del dir w/c is not empty
cp //cp source destination to copy a file
mv //to move the file from one location to another
ps // currently working process
top // all running process
useradd adduser //to add new user
userdel // to del user
redhat-config-network //to open network configuration manager
ifconfig //to check network details
ping id address
service network restart
more filename
head filename //first 10 lines
tail filename //last 10 lines

You might also like