linux command

ls linux Command
ls command display list of files.

Whoami linux Command
whoami command print the name of current user.
# whoami

Who Command
who command simply return user name, date, time and host information.
who and w command are similer. Unlike w command who doesn’t print what users are doing.
# who

Less Command
less command allows quickly view file.

# less main.log

More Command
more command allows quickly view file and shows details in percentage.

#more main.log

Cat Command
cat command used to view multiple file at the same time.

# cat file1 file2

Cd command
cd command is used to change directory.

# cd /directory1

Tar Command
tar command is used to compress files and folders in Linux.
# tar -cvf somename.tar /home

Find Command
Find command used to search files, strings and directories.

# find / -name

rm linux command
rm command used to remove or delete a file without prompting for confirmation.

# rm filename

mkdir command example.
mkdir command is used to create directories in Linux.

# mkdir directory-name

The clear command is used to clear the terminal screen.
# clear

The date command can be used to print (or even set) the system date and time.
# date

The chmod command lets you change access permissions for a file.
#chmod +x filename

The exit command causes the shell to exit.
# exit

The gzip command compresses the input file, replacing the file itself with one having a .gz extension.
# gzip filename

The nano command in Linux launches the ‘nano’ editor.
# nano

The passwd command is used for changing passwords for user accounts.
# passwd jquerytraining
Changing password for jquerytraining.
(current) UNIX password:

The ping linux command is used to check whether or not a system is up and responding. It sends ICMP ECHO_REQUEST to network hosts.
# ping
PING ( with 32 bit of data.
64 bytes from icmp_seq=1 ttl=58 time=47.3 ms
64 bytes from icmp_seq=2 ttl=58 time=51.9 ms
64 bytes from icmp_seq=3 ttl=58 time=57.4 ms

The shutdown linux command lets user shut the system in a safe way.
# shutdown

The sudo command lets a permitted user run a command as another user (usually root or superuser).
# sudo [command]

Leave comment

Your email address will not be published. Required fields are marked with *.