How To Display The System Information Using uname Command In Linux/Unix?

Uname is a command used in Linux/Unix to print the system information. Most commonly used to determine the processor architecture, hostname, kernel information, etc. The GNU version of uname is included in “sh-utils” or “coreutils” packages. Ahead in this article, we will discuss uname command and its usage. Syntax of uname command Following is the … Read more

How to Change Permission of File in Linux using Chmod Command

How to Change File Permission in Linux

Linux is a multiuser operating system where many number of users can access different files and directories at the same time. Access to all the files is managed using file permission, attribute, and ownership. Ownership makes sure which user(s) can access, and file permission ensures what operations can be performed by different group of users. … Read more

How to Change Owner of a File in Linux

How to change file owner in Linux

Linux and Unix are multi-user operating systems that means different users can access the operating system at a time and can use system resources simultaneously. So, different file and directories can have different owners, and also have different permissions about reading, writing, or execution of that file. If a user A accesses a file which … Read more

Linux TAR Command

create: tar -cvf mystuff.tar mystuff/ tar -czvf mystuff.tgz mystuff/ extracting: tar -xvf mystuff.tar tar -xzvf mystuff.tgz testing/viewing: tar -tvf mystuff.tar tar -tzvf mystuff.tgz Note that .tgz is the same thing as .tar.gz Tar “tars up” a bunch of files into one “tar-file” gzip is compression, but only works on one file, so the entire “tarfile” … Read more

Using find in Linux

find /etc -type f -exec grep network \{\} –with-filename \; find /etc -type f -exec grep -i network \{\} –with-filename \; find /etc -type f -exec grep ‘\-\z’ \{\} –with-filename \; | less find /etc -type f -exec grep ‘\[\[‘ \{\} –with-filename \; find: find . -type f -exec grep -i mysearchstring \{\} –with-filename \; … Read more