fmt command:
$ cat > fmt.txt
hai
all welcome
to
ILUGC
$ cat fmt.txt
hai
all welcome
to
ILUGC
$ fmt fmt.txt
hai all welcome to ILUGC

hostname:
$ hostname
localmachine

$ hostname -I
192.168.1.100 192.168.122.1 172.17.0.1

$ sudo hostname <new_hostname>
Example:
$ sudo hostname host
1.

2.
- Enter the Password:
- close the terminal and again open the terminal:
the hostname has been changed
to set the host as hostname
$ sudo hostname host
locate command:
- find the file name quickly
$ sudo updatedb
once created the file after update db using below mention the command
$ locate fmt.txt
/home/muthukumar/fmt.txt
-
i have created the one text file name of secret and then using
locate secret.txtand hit the enter but location is not showing in my terminal why ? ..not showing in the location because in this file not update in the db . so you have used this commandsudo updatedbthen next you have using the command and checksecret.txtResult Showing:







Top comments (0)