When you are using the terminal windows of a linux flavor, It will record all the commands that you type on the terminal window which makes it easy to retrieve and reuse them. By default, up to 500 commands that you have used are saved into a hidden file (~/.bash_history). You can access Continue Reading
You can use ls -l command (list information about the FILEs) to find our the file / directory owner and group names. $ ls -l filename Sample Output: -rw-r–r– 1 tecexpertz root 3584 Jun 5 00:00 filename Explanation, -rw-r–r– : file mode 1 – number of links tecexpertz – Owner Continue Reading
chown command changes the user and/or group ownership of for given file. The syntax is: chown owner-user file chown owner-user:owner-group file chown owner-user:owner-group directory chown -R owner-user:owner-group directory -R – Recursively change ownership of directories and their contents.
You can also use the chgrp command to change the group of a file or a directory. You must be the root user or the owner of the file in order to change the group ownership. The options of using chgrp are the same as using chown. $ chgrp -Rv usergroup directory $ chgrp usergroup file
You can change the owner and group of a file or a directory with the chown command. Set the file’s owner: $ chown username somefile You can also set the file’s group at the same time. $ chown username:usergroup somefile You can set the owner of a directory exactly the same way you set Continue Reading
You can find default gateway using ip, route and netstat commands in Linux systems [root@server ~]$ route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.64. 0 0.0.0.0 255.255.255.0 U 1 0 0 eth0 0.0.0.0 192. Continue Reading
nuwan@OpenSUSE:~> cat /etc/SuSE-release openSUSE 11.4 (i586) VERSION = 11.4 CODENAME = Celadon