linux

           
           /* Common Commands */

man //It is the 'manual' for all the commands in the linux system. 
> man ls //It will provide manual for 'ls'
> man touch //It will provide manual for 'touch'
> man man (All the manual will be displayed)
> man -k search //It will provide all the keywords related to 'search'.
> man -k jaskara //It will provide all the keywords related to 'jaskara'
  

which //It will provide the location from where shell is using the command.
> which touch //It will return the location of 'touch' cmd.
> which ls //It will return the location of 'ls' cmd.

 uname // This cmd will provide the system OS basic information.
uname -a | uname -i | uname -m


sudo parted // "Hard drive" details
parted -l //Provide partition of the HDD


sudo shutdown -h now //It will immediately shutdown the system
sudo shutdown -h +10 //It will shutdown the system in 10minutes.   
sudo shutdown -h +10 "System Will shutdown in 10minutes, Please Save your Work"//It will shutdown the system in 10minutes with the Prompted information.   
sudo shutdown -r now //It will Reboot the system.
sudo shutdown -c // To cancel the scheduled shutdown. 


pwd //Print Working Directory. ( It will provide the current directory)

cd //Change directory.
> cd /  //This will take to the parent directory.
> cd /childFolder/ChildsChildFolder/ // This will take the folder. But we should be in the current node to get to the child.   
> cd ~/desiredFolder //It will directly take to the desired folder. We don't have to worry about the current node.
> cd ..   //It will take to the previous directory
> cd ../..  /* Will take two directories back*/
> cd ../../..  /* Will take three directories back*/
> cd ~ //It will take to home directory


ls // It will Provide all the list items/files in the relative directory
> ls -l // It will provide detailed information.
> ls -alh  
  //or
> ll
// It will provide easier format to read.
> ls test* //It will only look for folders starting with string 'test'.
> ls *est //It will only look for folders ending with string 'est'.

> find / -name fileName* //it will find evrything starting          with 'fileName'.( might have to add sudo )
   
  
mkdir //It is used to create new folders. 
> mkdir folderName1
> mkdir test{1..5} //It will create 5 folders with pattern test1...test5.
> mkdir test{a..d}
  
touch // It will create new File(blank) in the directory.
> touch index.html
> touch script.js
> touch index.html style.css script.js //It will create all three files.

mrdir //It is usded to delete folders.

rm //It is used to remove files/Folders.
> rm index.html
> rm index.html style.css script.js //It will remove all three files.
rm -r folderName //Will delete all child data ( 'r' is recursive )
> rm -r test{1..5} //It will remove all the files with provided pattern


cat //Concatenate FILE(s) to standard output.
    //It can also be used to view files/data
    //It can only view text files.
> cat text.txt // It will print the 'text.txt'
> head text.txt //It will display the first 10 lines of the 'text.txt'
> head -2 text.txt //It will display first 2 lines.
> tail text.txt //It will display the last 10 lines of the 'text.txt'
> tail -2 text.txt //It will display last 2 lines.

> cat fileName (press double 'Tab') //It will return all the files starting with 'fileName'(s)

 grep //...
     //This can be used to filter data.
> sudo grep opened /var/log/auth.log //It will provide all the 'opened' in 'auth.log' file.

date //It will return date information.




      /*----------------------------------------*/

                 /*General Theory */
- Linux is case sentitive
- Relative : Present location ( Current directory)
- Absolute : Location from Root.
- Sudo group : A group of superusers that can access the root account and be receive unlimited privileges.

      /*----------------------------------------*/



              /* Ubuntu Server */

> sudo updateddb //It will update the database.

> locate fileName 
> locate test* //It will return all files starting with 'test'  
      /*----------------------------------------*/

  
              /*  Managing User */
//ONLY super user can add user on the system.
 //To Add User.  
> sudo useradd -d /home/dUserFolder -m dUserName
//It will add 'dUserName' as a new user name on the system
> sudo passwd dUserName
//It will create the password for 'dUserName'.
  

//2nd way to Add User. ( better way )
adduser //It is a script to 'add user',(not a command)  
> sudo adduser dUserName
//It will automatically create user and it's respestive folder and will ask to create password for it.

> cat /etc/group
 //It will return all the groups on the system. 
> cat /etc/group | grep dUserName
//It returns the 'group'(s) of user name 'dUserName'


 

              //Modify Users

//Add Group to user.
sudo usermod -aG groupName UserName
> sudo usermod -aG sudo dUserName
// We are adding 'sudo' group to user 'dUserName'.

> su UserName1
//It will change the terminal to 'UserName1'

//Lock User
> sudo usermod -L dUserName

//unlock User
> sudo usermode -U dUserName

//   /etc/passwd
> cat /etc/passwd
 //It will provide all the user's on the system ( including system groups ).

> sudo vipw
//It will display all the User's in a nano editabled list.
// Remove the need groups by using CTRL+K(To remove the line/group ) > CTRL+O (over write) > CTRL+X (exit).
//Removed groups will not show in the '> cat /etc/passwd'

//2nd way to remove group
groupdel
> groupdel [options] GROUPNAME


//  /etc/shadow
//It will return all the user's and there respective password and password data ( encryption used + Password expiration information ) . 


//Remove User
deluser
> deluser [--remove-all-files] [--backup] [--back-to DIR] dUserName
//It will remove the user and also the create the back for it.

  /*----------------------------------------*/


            /*   Managing Groups  */

addgroup
> sudo addgroup groupName1
//It will add 'groupName1' to the user.

> grep groupName1 /etc/group
//It will return the information about 'groupName1' 


groups
> groups
//It will return all the groups for the user.


Permissions:
> ll text.txt  
OR 
> ls -alh text.txt
 //It will provide the basic information about the file, inclduing permissions it has. 

-rwx-rwx-r--
-1 - 2- 3 -4
//Here Numbers are different groups. 
rw : read and write
r : Read.
x : executable file


To change Groups:
> sudo usermod -g newPrimaryGroup dUserName
//'newPrimaryGroup' Will be the primary group.


//Where can we keep the files to share data between different users. 
/var/share
/var/local/share
/share
/srv - for files that may be shared using a service externally.

//To modify the permission for user on the group.

//It will make new folder,
> sudo mkdir /home/newFolder

 //Adding new group
> sudo addgroup grpName1

// Group 'groupName1' will have access to 'newFolder' folder.
> sudo chgrp grpName1 /home/newFolder


  /*----------------------------------------*/



           /*  Managing Text Files  */

vim | nano
//Two popular linux terminal's IDE.


// VIM

> sudo app install vim
//In case if VIM is not installed by default.

> vim filesName.text



  /*----------------------------------------*/
 

     /* Linux Structure */

- man hier
//It will return the structure of the Linux system and basic idea about all the files.

 

  /*----------------------------------------*/
         /*  Remote Access    */


- SSH works on TCP.



/*----------------------------------------*/

  /*----------------------------------------*/

  
  
  
  
  
  
  
  
  
  
           
           /* Common Commands */

man //It is the 'manual' for all the commands in the linux system. 
> man ls //It will provide manual for 'ls'
> man touch //It will provide manual for 'touch'
> man man (All the manual will be displayed)
> man -k search //It will provide all the keywords related to 'search'.
> man -k jaskara //It will provide all the keywords related to 'jaskara'
  

which //It will provide the location from where shell is using the command.
> which touch //It will return the location of 'touch' cmd.
> which ls //It will return the location of 'ls' cmd.

 uname // This cmd will provide the system OS basic information.
uname -a | uname -i | uname -m


sudo parted // "Hard drive" details
parted -l //Provide partition of the HDD


sudo shutdown -h now //It will immediately shutdown the system
sudo shutdown -h +10 //It will shutdown the system in 10minutes.   
sudo shutdown -h +10 "System Will shutdown in 10minutes, Please Save your Work"//It will shutdown the system in 10minutes with the Prompted information.   
sudo shutdown -r now //It will Reboot the system.
sudo shutdown -c // To cancel the scheduled shutdown. 


pwd //Print Working Directory. ( It will provide the current directory)

cd //Change directory.
> cd /  //This will take to the parent directory.
> cd /childFolder/ChildsChildFolder/ // This will take the folder. But we should be in the current node to get to the child.   
> cd ~/desiredFolder //It will directly take to the desired folder. We don't have to worry about the current node.
> cd ..   //It will take to the previous directory
> cd ../..  /* Will take two directories back*/
> cd ../../..  /* Will take three directories back*/
> cd ~ //It will take to home directory


ls // It will Provide all the list items/files in the relative directory
> ls -l // It will provide detailed information.
> ls -alh  
  //or
> ll
// It will provide easier format to read.
> ls test* //It will only look for folders starting with string 'test'.
> ls *est //It will only look for folders ending with string 'est'.

> find / -name fileName* //it will find evrything starting          with 'fileName'.( might have to add sudo )
   
  
mkdir //It is used to create new folders. 
> mkdir folderName1
> mkdir test{1..5} //It will create 5 folders with pattern test1...test5.
> mkdir test{a..d}
  
touch // It will create new File(blank) in the directory.
> touch index.html
> touch script.js
> touch index.html style.css script.js //It will create all three files.

mrdir //It is usded to delete folders.

rm //It is used to remove files/Folders.
> rm index.html
> rm index.html style.css script.js //It will remove all three files.
rm -r folderName //Will delete all child data ( 'r' is recursive )
> rm -r test{1..5} //It will remove all the files with provided pattern


cat //Concatenate FILE(s) to standard output.
    //It can also be used to view files/data
    //It can only view text files.
> cat text.txt // It will print the 'text.txt'
> head text.txt //It will display the first 10 lines of the 'text.txt'
> head -2 text.txt //It will display first 2 lines.
> tail text.txt //It will display the last 10 lines of the 'text.txt'
> tail -2 text.txt //It will display last 2 lines.

> cat fileName (press double 'Tab') //It will return all the files starting with 'fileName'(s)

 grep //...
     //This can be used to filter data.
> sudo grep opened /var/log/auth.log //It will provide all the 'opened' in 'auth.log' file.

date //It will return date information.




      /*----------------------------------------*/

                 /*General Theory */
- Linux is case sentitive
- Relative : Present location ( Current directory)
- Absolute : Location from Root.
- Sudo group : A group of superusers that can access the root account and be receive unlimited privileges.

      /*----------------------------------------*/



              /* Ubuntu Server */

> sudo updateddb //It will update the database.

> locate fileName 
> locate test* //It will return all files starting with 'test'  
      /*----------------------------------------*/

  
              /*  Managing User */
//ONLY super user can add user on the system.
 //To Add User.  
> sudo useradd -d /home/dUserFolder -m dUserName
//It will add 'dUserName' as a new user name on the system
> sudo passwd dUserName
//It will create the password for 'dUserName'.
  

//2nd way to Add User. ( better way )
adduser //It is a script to 'add user',(not a command)  
> sudo adduser dUserName
//It will automatically create user and it's respestive folder and will ask to create password for it.

> cat /etc/group
 //It will return all the groups on the system. 
> cat /etc/group | grep dUserName
//It returns the 'group'(s) of user name 'dUserName'


 

              //Modify Users

//Add Group to user.
sudo usermod -aG groupName UserName
> sudo usermod -aG sudo dUserName
// We are adding 'sudo' group to user 'dUserName'.

> su UserName1
//It will change the terminal to 'UserName1'

//Lock User
> sudo usermod -L dUserName

//unlock User
> sudo usermode -U dUserName

//   /etc/passwd
> cat /etc/passwd
 //It will provide all the user's on the system ( including system groups ).

> sudo vipw
//It will display all the User's in a nano editabled list.
// Remove the need groups by using CTRL+K(To remove the line/group ) > CTRL+O (over write) > CTRL+X (exit).
//Removed groups will not show in the '> cat /etc/passwd'

//2nd way to remove group
groupdel
> groupdel [options] GROUPNAME


//  /etc/shadow
//It will return all the user's and there respective password and password data ( encryption used + Password expiration information ) . 


//Remove User
deluser
> deluser [--remove-all-files] [--backup] [--back-to DIR] dUserName
//It will remove the user and also the create the back for it.

  /*----------------------------------------*/


            /*   Managing Groups  */

addgroup
> sudo addgroup groupName1
//It will add 'groupName1' to the user.

> grep groupName1 /etc/group
//It will return the information about 'groupName1' 


groups
> groups
//It will return all the groups for the user.


Permissions:
> ll text.txt  
OR 
> ls -alh text.txt
 //It will provide the basic information about the file, inclduing permissions it has. 

-rwx-rwx-r--
-1 - 2- 3 -4
//Here Numbers are different groups. 
rw : read and write
r : Read.
x : executable file


To change Groups:
> sudo usermod -g newPrimaryGroup dUserName
//'newPrimaryGroup' Will be the primary group.


//Where can we keep the files to share data between different users. 
/var/share
/var/local/share
/share
/srv - for files that may be shared using a service externally.

//To modify the permission for user on the group.

//It will make new folder,
> sudo mkdir /home/newFolder

 //Adding new group
> sudo addgroup grpName1

// Group 'groupName1' will have access to 'newFolder' folder.
> sudo chgrp grpName1 /home/newFolder


  /*----------------------------------------*/



           /*  Managing Text Files  */

vim | nano
//Two popular linux terminal's IDE.


// VIM

> sudo app install vim
//In case if VIM is not installed by default.

> vim filesName.text



  /*----------------------------------------*/
 

     /* Linux Structure */

- man hier
//It will return the structure of the Linux system and basic idea about all the files.

 

  /*----------------------------------------*/
         /*  Remote Access    */


- SSH works on TCP.



/*----------------------------------------*/

  /*----------------------------------------*/

  
  
  
  
  
  
  
  
  
  
           
           /* Common Commands */

man //It is the 'manual' for all the commands in the linux system. 
> man ls //It will provide manual for 'ls'
> man touch //It will provide manual for 'touch'
> man man (All the manual will be displayed)
> man -k search //It will provide all the keywords related to 'search'.
> man -k jaskara //It will provide all the keywords related to 'jaskara'
  

which //It will provide the location from where shell is using the command.
> which touch //It will return the location of 'touch' cmd.
> which ls //It will return the location of 'ls' cmd.

 uname // This cmd will provide the system OS basic information.
uname -a | uname -i | uname -m


sudo parted // "Hard drive" details
parted -l //Provide partition of the HDD


sudo shutdown -h now //It will immediately shutdown the system
sudo shutdown -h +10 //It will shutdown the system in 10minutes.   
sudo shutdown -h +10 "System Will shutdown in 10minutes, Please Save your Work"//It will shutdown the system in 10minutes with the Prompted information.   
sudo shutdown -r now //It will Reboot the system.
sudo shutdown -c // To cancel the scheduled shutdown. 


pwd //Print Working Directory. ( It will provide the current directory)

cd //Change directory.
> cd /  //This will take to the parent directory.
> cd /childFolder/ChildsChildFolder/ // This will take the folder. But we should be in the current node to get to the child.   
> cd ~/desiredFolder //It will directly take to the desired folder. We don't have to worry about the current node.
> cd ..   //It will take to the previous directory
> cd ../..  /* Will take two directories back*/
> cd ../../..  /* Will take three directories back*/
> cd ~ //It will take to home directory


ls // It will Provide all the list items/files in the relative directory
> ls -l // It will provide detailed information.
> ls -alh  
  //or
> ll
// It will provide easier format to read.
> ls test* //It will only look for folders starting with string 'test'.
> ls *est //It will only look for folders ending with string 'est'.

> find / -name fileName* //it will find evrything starting          with 'fileName'.( might have to add sudo )
   
  
mkdir //It is used to create new folders. 
> mkdir folderName1
> mkdir test{1..5} //It will create 5 folders with pattern test1...test5.
> mkdir test{a..d}
  
touch // It will create new File(blank) in the directory.
> touch index.html
> touch script.js
> touch index.html style.css script.js //It will create all three files.

mrdir //It is usded to delete folders.

rm //It is used to remove files/Folders.
> rm index.html
> rm index.html style.css script.js //It will remove all three files.
rm -r folderName //Will delete all child data ( 'r' is recursive )
> rm -r test{1..5} //It will remove all the files with provided pattern


cat //Concatenate FILE(s) to standard output.
    //It can also be used to view files/data
    //It can only view text files.
> cat text.txt // It will print the 'text.txt'
> head text.txt //It will display the first 10 lines of the 'text.txt'
> head -2 text.txt //It will display first 2 lines.
> tail text.txt //It will display the last 10 lines of the 'text.txt'
> tail -2 text.txt //It will display last 2 lines.

> cat fileName (press double 'Tab') //It will return all the files starting with 'fileName'(s)

 grep //...
     //This can be used to filter data.
> sudo grep opened /var/log/auth.log //It will provide all the 'opened' in 'auth.log' file.

date //It will return date information.




      /*----------------------------------------*/

                 /*General Theory */
- Linux is case sentitive
- Relative : Present location ( Current directory)
- Absolute : Location from Root.
- Sudo group : A group of superusers that can access the root account and be receive unlimited privileges.

      /*----------------------------------------*/



              /* Ubuntu Server */

> sudo updateddb //It will update the database.

> locate fileName 
> locate test* //It will return all files starting with 'test'  
      /*----------------------------------------*/

  
              /*  Managing User */
//ONLY super user can add user on the system.
 //To Add User.  
> sudo useradd -d /home/dUserFolder -m dUserName
//It will add 'dUserName' as a new user name on the system
> sudo passwd dUserName
//It will create the password for 'dUserName'.
  

//2nd way to Add User. ( better way )
adduser //It is a script to 'add user',(not a command)  
> sudo adduser dUserName
//It will automatically create user and it's respestive folder and will ask to create password for it.

> cat /etc/group
 //It will return all the groups on the system. 
> cat /etc/group | grep dUserName
//It returns the 'group'(s) of user name 'dUserName'


 

              //Modify Users

//Add Group to user.
sudo usermod -aG groupName UserName
> sudo usermod -aG sudo dUserName
// We are adding 'sudo' group to user 'dUserName'.

> su UserName1
//It will change the terminal to 'UserName1'

//Lock User
> sudo usermod -L dUserName

//unlock User
> sudo usermode -U dUserName

//   /etc/passwd
> cat /etc/passwd
 //It will provide all the user's on the system ( including system groups ).

> sudo vipw
//It will display all the User's in a nano editabled list.
// Remove the need groups by using CTRL+K(To remove the line/group ) > CTRL+O (over write) > CTRL+X (exit).
//Removed groups will not show in the '> cat /etc/passwd'

//2nd way to remove group
groupdel
> groupdel [options] GROUPNAME


//  /etc/shadow
//It will return all the user's and there respective password and password data ( encryption used + Password expiration information ) . 


//Remove User
deluser
> deluser [--remove-all-files] [--backup] [--back-to DIR] dUserName
//It will remove the user and also the create the back for it.

  /*----------------------------------------*/


            /*   Managing Groups  */

addgroup
> sudo addgroup groupName1
//It will add 'groupName1' to the user.

> grep groupName1 /etc/group
//It will return the information about 'groupName1' 


groups
> groups
//It will return all the groups for the user.


Permissions:
> ll text.txt  
OR 
> ls -alh text.txt
 //It will provide the basic information about the file, inclduing permissions it has. 

-rwx-rwx-r--
-1 - 2- 3 -4
//Here Numbers are different groups. 
rw : read and write
r : Read.
x : executable file


To change Groups:
> sudo usermod -g newPrimaryGroup dUserName
//'newPrimaryGroup' Will be the primary group.


//Where can we keep the files to share data between different users. 
/var/share
/var/local/share
/share
/srv - for files that may be shared using a service externally.

//To modify the permission for user on the group.

//It will make new folder,
> sudo mkdir /home/newFolder

 //Adding new group
> sudo addgroup grpName1

// Group 'groupName1' will have access to 'newFolder' folder.
> sudo chgrp grpName1 /home/newFolder


  /*----------------------------------------*/



           /*  Managing Text Files  */

vim | nano
//Two popular linux terminal's IDE.


// VIM

> sudo app install vim
//In case if VIM is not installed by default.

> vim filesName.text



  /*----------------------------------------*/
 

     /* Linux Structure */

- man hier
//It will return the structure of the Linux system and basic idea about all the files.

 

  /*----------------------------------------*/
         /*  Remote Access    */


- SSH works on TCP.



/*----------------------------------------*/

  /*----------------------------------------*/

  
  
  
  
  
  
  
  
  
  
           
           /* Common Commands */

man //It is the 'manual' for all the commands in the linux system. 
> man ls //It will provide manual for 'ls'
> man touch //It will provide manual for 'touch'
> man man (All the manual will be displayed)
> man -k search //It will provide all the keywords related to 'search'.
> man -k jaskara //It will provide all the keywords related to 'jaskara'
  

which //It will provide the location from where shell is using the command.
> which touch //It will return the location of 'touch' cmd.
> which ls //It will return the location of 'ls' cmd.

 uname // This cmd will provide the system OS basic information.
uname -a | uname -i | uname -m


sudo parted // "Hard drive" details
parted -l //Provide partition of the HDD


sudo shutdown -h now //It will immediately shutdown the system
sudo shutdown -h +10 //It will shutdown the system in 10minutes.   
sudo shutdown -h +10 "System Will shutdown in 10minutes, Please Save your Work"//It will shutdown the system in 10minutes with the Prompted information.   
sudo shutdown -r now //It will Reboot the system.
sudo shutdown -c // To cancel the scheduled shutdown. 


pwd //Print Working Directory. ( It will provide the current directory)

cd //Change directory.
> cd /  //This will take to the parent directory.
> cd /childFolder/ChildsChildFolder/ // This will take the folder. But we should be in the current node to get to the child.   
> cd ~/desiredFolder //It will directly take to the desired folder. We don't have to worry about the current node.
> cd ..   //It will take to the previous directory
> cd ../..  /* Will take two directories back*/
> cd ../../..  /* Will take three directories back*/
> cd ~ //It will take to home directory


ls // It will Provide all the list items/files in the relative directory
> ls -l // It will provide detailed information.
> ls -alh  
  //or
> ll
// It will provide easier format to read.
> ls test* //It will only look for folders starting with string 'test'.
> ls *est //It will only look for folders ending with string 'est'.

> find / -name fileName* //it will find evrything starting          with 'fileName'.( might have to add sudo )
   
  
mkdir //It is used to create new folders. 
> mkdir folderName1
> mkdir test{1..5} //It will create 5 folders with pattern test1...test5.
> mkdir test{a..d}
  
touch // It will create new File(blank) in the directory.
> touch index.html
> touch script.js
> touch index.html style.css script.js //It will create all three files.

mrdir //It is usded to delete folders.

rm //It is used to remove files/Folders.
> rm index.html
> rm index.html style.css script.js //It will remove all three files.
rm -r folderName //Will delete all child data ( 'r' is recursive )
> rm -r test{1..5} //It will remove all the files with provided pattern


cat //Concatenate FILE(s) to standard output.
    //It can also be used to view files/data
    //It can only view text files.
> cat text.txt // It will print the 'text.txt'
> head text.txt //It will display the first 10 lines of the 'text.txt'
> head -2 text.txt //It will display first 2 lines.
> tail text.txt //It will display the last 10 lines of the 'text.txt'
> tail -2 text.txt //It will display last 2 lines.

> cat fileName (press double 'Tab') //It will return all the files starting with 'fileName'(s)

 grep //...
     //This can be used to filter data.
> sudo grep opened /var/log/auth.log //It will provide all the 'opened' in 'auth.log' file.

date //It will return date information.




      /*----------------------------------------*/

                 /*General Theory */
- Linux is case sentitive
- Relative : Present location ( Current directory)
- Absolute : Location from Root.
- Sudo group : A group of superusers that can access the root account and be receive unlimited privileges.

      /*----------------------------------------*/



              /* Ubuntu Server */

> sudo updateddb //It will update the database.

> locate fileName 
> locate test* //It will return all files starting with 'test'  
      /*----------------------------------------*/

  
              /*  Managing User */
//ONLY super user can add user on the system.
 //To Add User.  
> sudo useradd -d /home/dUserFolder -m dUserName
//It will add 'dUserName' as a new user name on the system
> sudo passwd dUserName
//It will create the password for 'dUserName'.
  

//2nd way to Add User. ( better way )
adduser //It is a script to 'add user',(not a command)  
> sudo adduser dUserName
//It will automatically create user and it's respestive folder and will ask to create password for it.

> cat /etc/group
 //It will return all the groups on the system. 
> cat /etc/group | grep dUserName
//It returns the 'group'(s) of user name 'dUserName'


 

              //Modify Users

//Add Group to user.
sudo usermod -aG groupName UserName
> sudo usermod -aG sudo dUserName
// We are adding 'sudo' group to user 'dUserName'.

> su UserName1
//It will change the terminal to 'UserName1'

//Lock User
> sudo usermod -L dUserName

//unlock User
> sudo usermode -U dUserName

//   /etc/passwd
> cat /etc/passwd
 //It will provide all the user's on the system ( including system groups ).

> sudo vipw
//It will display all the User's in a nano editabled list.
// Remove the need groups by using CTRL+K(To remove the line/group ) > CTRL+O (over write) > CTRL+X (exit).
//Removed groups will not show in the '> cat /etc/passwd'

//2nd way to remove group
groupdel
> groupdel [options] GROUPNAME


//  /etc/shadow
//It will return all the user's and there respective password and password data ( encryption used + Password expiration information ) . 


//Remove User
deluser
> deluser [--remove-all-files] [--backup] [--back-to DIR] dUserName
//It will remove the user and also the create the back for it.

  /*----------------------------------------*/


            /*   Managing Groups  */

addgroup
> sudo addgroup groupName1
//It will add 'groupName1' to the user.

> grep groupName1 /etc/group
//It will return the information about 'groupName1' 


groups
> groups
//It will return all the groups for the user.


Permissions:
> ll text.txt  
OR 
> ls -alh text.txt
 //It will provide the basic information about the file, inclduing permissions it has. 

-rwx-rwx-r--
-1 - 2- 3 -4
//Here Numbers are different groups. 
rw : read and write
r : Read.
x : executable file


To change Groups:
> sudo usermod -g newPrimaryGroup dUserName
//'newPrimaryGroup' Will be the primary group.


//Where can we keep the files to share data between different users. 
/var/share
/var/local/share
/share
/srv - for files that may be shared using a service externally.

//To modify the permission for user on the group.

//It will make new folder,
> sudo mkdir /home/newFolder

 //Adding new group
> sudo addgroup grpName1

// Group 'groupName1' will have access to 'newFolder' folder.
> sudo chgrp grpName1 /home/newFolder


  /*----------------------------------------*/



           /*  Managing Text Files  */

vim | nano
//Two popular linux terminal's IDE.


// VIM

> sudo app install vim
//In case if VIM is not installed by default.

> vim filesName.text



  /*----------------------------------------*/
 

     /* Linux Structure */

- man hier
//It will return the structure of the Linux system and basic idea about all the files.

 

  /*----------------------------------------*/
         /*  Remote Access    */


- SSH works on TCP.



/*----------------------------------------*/

  /*----------------------------------------*/

  
  
  
  
  
  
  
  
  
  

Similiar Collections

Python strftime reference pandas.Period.strftime python - Formatting Quarter time in pandas columns - Stack Overflow python - Pandas: Change day - Stack Overflow python - Check if multiple columns exist in a df - Stack Overflow Pandas DataFrame apply() - sending arguments examples python - How to filter a dataframe of dates by a particular month/day? - Stack Overflow python - replace a value in the entire pandas data frame - Stack Overflow python - Replacing blank values (white space) with NaN in pandas - Stack Overflow python - get list from pandas dataframe column - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to drop rows of Pandas DataFrame whose value in a certain column is NaN - Stack Overflow python - How to lowercase a pandas dataframe string column if it has missing values? - Stack Overflow How to Convert Integers to Strings in Pandas DataFrame - Data to Fish How to Convert Integers to Strings in Pandas DataFrame - Data to Fish create a dictionary of two pandas Dataframe columns? - Stack Overflow python - ValueError: No axis named node2 for object type <class 'pandas.core.frame.DataFrame'> - Stack Overflow Python Pandas iterate over rows and access column names - Stack Overflow python - Creating dataframe from a dictionary where entries have different lengths - Stack Overflow python - Deleting DataFrame row in Pandas based on column value - Stack Overflow python - How to check if a column exists in Pandas - Stack Overflow python - Import pandas dataframe column as string not int - Stack Overflow python - What is the most efficient way to create a dictionary of two pandas Dataframe columns? - Stack Overflow Python Loop through Excel sheets, place into one df - Stack Overflow python - How do I get the row count of a Pandas DataFrame? - Stack Overflow python - How to save a new sheet in an existing excel file, using Pandas? - Stack Overflow Python Loop through Excel sheets, place into one df - Stack Overflow How do I select a subset of a DataFrame? — pandas 1.2.4 documentation python - Delete column from pandas DataFrame - Stack Overflow python - Convert list of dictionaries to a pandas DataFrame - Stack Overflow How to Add or Insert Row to Pandas DataFrame? - Python Examples python - Check if a value exists in pandas dataframe index - Stack Overflow python - Set value for particular cell in pandas DataFrame using index - Stack Overflow python - Pandas Dataframe How to cut off float decimal points without rounding? - Stack Overflow python - Pandas: Change day - Stack Overflow python - Clean way to convert quarterly periods to datetime in pandas - Stack Overflow Pandas - Number of Months Between Two Dates - Stack Overflow python - MonthEnd object result in <11 * MonthEnds> instead of number - Stack Overflow python - Extracting the first day of month of a datetime type column in pandas - Stack Overflow
PostgreSQL POSITION() function PostgresQL ANY / SOME Operator ( IN vs ANY ) PostgreSQL Substring - Extracting a substring from a String How to add an auto-incrementing primary key to an existing table, in PostgreSQL PostgreSQL STRING_TO_ARRAY()function mysql FIND_IN_SET equivalent to postgresql PL/pgSQL Variables ( Format Dates ) The Ultimate Guide to PostgreSQL Date By Examples Data Type Formatting Functions PostgreSQL - How to calculate difference between two timestamps? | TablePlus Date/Time Functions and Operators PostgreSQL - DATEDIFF - Datetime Difference in Seconds, Days, Months, Weeks etc - SQLines CASE Statements in PostgreSQL - DataCamp SQL Optimizations in PostgreSQL: IN vs EXISTS vs ANY/ALL vs JOIN PL/pgSQL Variables PostgreSQL: Documentation: 11: CREATE PROCEDURE Reading a Postgres EXPLAIN ANALYZE Query Plan Faster PostgreSQL Counting sql - Fast way to discover the row count of a table in PostgreSQL - Stack Overflow PostgreSQL: Documentation: 9.1: tablefunc PostgreSQL DESCRIBE TABLE Quick and best way to Compare Two Tables in SQL - DWgeek.com sql - Best way to select random rows PostgreSQL - Stack Overflow How to Add a Default Value to a Column in PostgreSQL - PopSQL How to Add a Default Value to a Column in PostgreSQL - PopSQL PL/pgSQL IF Statement PostgreSQL: Documentation: 9.1: Declarations SQL Subquery - Dofactory SQL IN - SQL NOT IN - JournalDev PostgreSQL - IF Statement - GeeksforGeeks How to work with control structures in PostgreSQL stored procedures: Using IF, CASE, and LOOP statements | EDB PL/pgSQL IF Statement How to combine multiple selects in one query - Databases - ( loop reference ) DROP FUNCTION (Transact-SQL) - SQL Server | Microsoft Docs
כמה עוד נשאר למשלוח חינם גם לעגלה ולצקאאוט הוספת צ'קבוקס לאישור דיוור בצ'קאאוט הסתרת אפשרויות משלוח אחרות כאשר משלוח חינם זמין דילוג על מילוי כתובת במקרה שנבחרה אפשרות איסוף עצמי הוספת צ'קבוקס לאישור דיוור בצ'קאאוט שינוי האפשרויות בתפריט ה-סידור לפי בווקומרס שינוי הטקסט "אזל מהמלאי" הערה אישית לסוף עמוד העגלה הגבלת רכישה לכל המוצרים למקסימום 1 מכל מוצר קבלת שם המוצר לפי ה-ID בעזרת שורטקוד הוספת כפתור וואטסאפ לקנייה בלופ ארכיון מוצרים הפיכה של מיקוד בצ'קאאוט ללא חובה מעבר ישיר לצ'קאאוט בלחיתה על הוספה לסל (דילוג עגלה) התראה לקבלת משלוח חינם בדף עגלת הקניות גרסה 1 התראה לקבלת משלוח חינם בדף עגלת הקניות גרסה 2 קביעה של מחיר הזמנה מינימלי (מוצג בעגלה ובצ'קאאוט) העברת קוד הקופון ל-ORDER REVIEW העברת קוד הקופון ל-ORDER REVIEW Kadence WooCommerce Email Designer קביעת פונט אסיסנט לכל המייל בתוסף מוצרים שאזלו מהמלאי - יופיעו מסומנים באתר, אבל בתחתית הארכיון הוספת כפתור "קנה עכשיו" למוצרים הסתרת אפשרויות משלוח אחרות כאשר משלוח חינם זמין שיטה 2 שינוי סימן מטבע ש"ח ל-ILS להפוך סטטוס הזמנה מ"השהייה" ל"הושלם" באופן אוטומטי תצוגת הנחה באחוזים שינוי טקסט "בחר אפשרויות" במוצרים עם וריאציות חיפוש מוצר לפי מק"ט שינוי תמונת מוצר לפי וריאציה אחרי בחירה של וריאציה אחת במקרה של וריאציות מרובות הנחה קבועה לפי תפקיד בתעריף קבוע הנחה קבועה לפי תפקיד באחוזים הסרה של שדות משלוח לקבצים וירטואליים הסתרת טאבים מעמוד מוצר הצגת תגית "אזל מהמלאי" בלופ המוצרים להפוך שדות ל-לא חובה בצ'קאאוט שינוי טקסט "אזל מהמלאי" לוריאציות שינוי צבע ההודעות המובנות של ווקומרס הצגת ה-ID של קטגוריות המוצרים בעמוד הקטגוריות אזל מהמלאי- שינוי ההודעה, תגית בלופ, הודעה בדף המוצר והוספת אזל מהמלאי על וריאציה הוספת שדה מחיר ספק לדף העריכה שינוי טקסט אזל מהמלאי תמונות מוצר במאונך לצד תמונת המוצר הראשית באלמנטור הוספת כפתור קנה עכשיו לעמוד המוצר בקניה הזו חסכת XX ש''ח לאפשר למנהל חנות לנקות קאש ברוקט
הודעת שגיאה מותאמת אישית בטפסים להפוך כל סקשן/עמודה לקליקבילית (לחיצה) - שיטה 1 להפוך כל סקשן/עמודה לקליקבילית (לחיצה) - שיטה 2 שינוי הגבלת הזיכרון בשרת הוספת לינק להורדת מסמך מהאתר במייל הנשלח ללקוח להפוך כל סקשן/עמודה לקליקבילית (לחיצה) - שיטה 3 יצירת כפתור שיתוף למובייל פתיחת דף תודה בטאב חדש בזמן שליחת טופס אלמנטור - טופס בודד בדף פתיחת דף תודה בטאב חדש בזמן שליחת טופס אלמנטור - טפסים מרובים בדף ביי ביי לאריק ג'ונס (חסימת ספאם בטפסים) זיהוי אלו אלמנטים גורמים לגלילה אופקית לייבלים מרחפים בטפסי אלמנטור יצירת אנימציה של "חדשות רצות" בג'ט (marquee) שינוי פונט באופן דינאמי בג'ט פונקציה ששולפת שדות מטא מתוך JET ומאפשרת לשים הכל בתוך שדה SELECT בטופס אלמנטור הוספת קו בין רכיבי התפריט בדסקטופ ולדציה למספרי טלפון בטפסי אלמנטור חיבור שני שדות בטופס לשדה אחד שאיבת נתון מתוך כתובת ה-URL לתוך שדה בטופס וקידוד לעברית מדיה קוורי למובייל לייבלים מרחפים בטפסי אלמנטור תמונות מוצר במאונך לצד תמונת המוצר הראשית באלמנטור הצגת תאריך עברי פורמט תאריך מותאם אישית