Header Ads

Commun linux commands!


Open-source Linux is a popular alternative to Microsoft Windows, and if you choose this free operating system, you need to know some basic Linux commands to make your system work!The most common Linux commands are these.

cat [filename]
Display file’s contents to the screen.

cd /directorypath
Change to directory.

chmod [options] mode filename
Change a file’s permissions.

chown [options] filename
Change the file owner.

clear
Clear a command line screen/window for a fresh looking screen.

cp [options] source destination
Copy files and directories.

date [options]
Display or set the system date and time.

df [options]
Display used and available disk space.

du [options]
Show how much space each file takes up.

file [options] filename
Determine what type of data is within a file.

find [pathname] [expression]
Search for files matching a provided pattern.

grep [options] pattern [filesname]
Search files or output for a particular pattern.

kill [options] pid
Stop a process. If the process refuses to stop, use kill -9 pid.

less [options] [filename]
View the contents of a file one page at a time.

ln [options] source [destination]
Create a shortcut.

locate filename
Search a copy of your filesystem for the specified filename.

touch filename
Create an empty file with the specified name.

pwd
Display the pathname for the current directory.




Powered by Blogger.