Umask and system commands in Linux|if config network commands|
umask is a variable available per linux system user based on which his files/folder permissions
will be assigned by default,default umask value is 0002.
-----------------------------------------------------------------------------------------------------------------------------
user/system commands
whoami = gives you current user of the machine
logname = current user of the machine.
who = shows all the users currently accessing the machine
users = only gives space separated usernames currently logged in.
uname = operating system name
uname -a = gives full details of the operating system.
hostname = gives name of the computer
hostname -i = ip address
ls -l | more = displays by page the list of files.
man command-name = man stands for manual and can get information about any linux command.
----------------------------------------------------------------------------------------------------------------------------
networking commands
------------------------------------------
sudo apt-get install -y net-tools = install net-tools package for using ifconfig command
ifconfig = displays the ip address and network adapter information.
ping serverName = checks the communication line between client and the server and rate of transmission.
free -h : will show you system storage details like free space total size of disk
Comments
Post a Comment