1. Basic linux commands
Summary
- To find out the way to browse a ram. (Suppose when we intialize any variable x=5; in our program than it is taught to us that it gets stored in ram but now how one can proof that it is present in the ram.)
- About GUI(Graphical User Interface) and CLI(Command Line Interface)
- How to open applications using terminal (eg. Typing Firefox on the radhat and pressing enter will open the browser)
- speak-ng command(to speak what O/P it is giving), date cmd, cal command, which command
- Saw that the cookies that fb and google send to our systems are very critical and even if someone by any way copies them to his/her system can get a complete acess of our Google and Facebook accounts or and other accounts and will never be asked to enter any username password and no otp verification will be there and also a 3 level verification will not work
2. Basic commands, Virtual box setup, Redhat 8 installation
Summary
- how to pause the command by using 'sleep'
- difference between 'ctrl+z' and 'ctrl+c'
- use of '&'
- use of echo and how we can use it in different ways
- how to install rethat linux
- how to recognize the correct IP address
Installation of Rhel:
- Download any virutal box (vmware | oracle)
Note: This links are for windows, if your using another os, kindly search for appropriate one. - Download the iso file rhel 8
- Install the virtual box and setup the configurations
Note: This installation is wrt oracle virtual box
- open and click
New
- we can observe a popup box named "Create Virtual Machine" fill the detials like
Name(any)
,Type(linux)
,Version(RedHat 64bit)
and clickNext
Memory size
preferred 1GB or more and clickNext
Hard disk
chooseCreate a virtual hard disk now
option and clickCreate
Hard disk file type
chooseVDI(VirtualBox Disk Image)
option and clickNext
Storage on physical hard disk
chooseDynamically allocated
option and clickNext
File location and size
preferred 10GB to 100GB and clickCreate
- now the hardware setup is done, you can observe it in the left window
- for software setup, right click and choose
settings
and can check the hardware configuration's, go forstorage
settings settings
>storage
>Controller IDE : empty
click onempty
find Attributes in side windowAttributes
>Optical Drive
choose the ISO file location and clickOk
, now both hardware and software got setuped- click on file created (is avaliable in left window with the name 'Name(any)') and click
start
- now you can see a black screen with few options (cursor won't work, use arrow keys) and choose
Install Red Hat Enterprise Linux 8.0.0
- wait until you see
WELCOME TO RED HAT ENTERPRISE LINUX 8.0.0
and choose the required language - now you're at
INSTALLATION SUMMARY
click onInstallation Destination
Automatic partitioning selected and clickDone
- select the
Network & Host Name
to connect to the network and clickDone
- select
Software Selection
and chooseWorkstation
option from the available one's and clickDone
- select
Time & Date
to change the time zone and clickDone
- now click
Begin Installation
it takes some time to install - now at
CONFIGURATION
to setup the password for thrroot
- Finally the installation is done!!
Issue: If you can't see RedHat 64bit, kindly follow these steps:
- restart (shutdown and start).
- enter the bios (press f12).
- advance settings / CPU configurations.
- find
Enable Virtualization
and enable it. - save the settings (press f10) and start the system.
Note: check the function keys for your device and use it (they may vary from device to device).
Note: Still any issues can raise a question at channel
while : ; do echo -n -e "`date +%T``sleep 1`\b\b\b\b\b\b\b\b" ; done &
3. Basic linux networking Unique tip about IP address
Summary
ifconfig
shows all the ip address, the first one of all is actualether
ip address.- mobile number cloning
- valid ip address is of 4 bytes (representation can be any)
- neospace (shows ip routing)
- use
nslookup site-name
$ nslookup youtube.com
Server: 127.0.0.53
Address: 127.0.0.53#53 (actual ip)
Non-authoritative answer:
Name: youtube.com
Address: 216.58.196.78
Name: youtube.com
Address: 2404:6800:4009:809::200e
- how do ip get stored in ram? 4 bytes
will be updated soon!
Summary
gnome-terminal
command can create a terminal.
# its a bash script
for((i = 0; i<10; i++))
do
gnome-terminal
done
# note: It creates 10 terminals at the instance of executing the code.
# and manually closing them will be hectic if the no of terminals are more.
which <command-name>
gives the path of the command.ps -aux
is used to view all the commands in running state.ps -aux | grep <command-name>/<keyword>
to search it.- To close a command we can do
manually
, orclt+c
, orkill <process-id>
- To close the huge no of terminals we can use the
kill <process-id>
command and the process id can be obtained usingps -aux | grep <gnome-terminal>
cat > <filename.extension>
to see the data directly on prompt/terminal, it can also used to create file and write data from CLI. It even replaces the new data using a slight change in syntaxcat >> <filename.extension>
, which appends the data to exsisting file.touch <filename.extension>
is also used to create the file (only).- To add a new user,
useradd <user-name>
and set passwordpasswd <password>
. - To verify the account created or not
id <user-name>
, it return few details if exist, else givesno such user
. whoami
gives the username / usetty
.- Can we switch the console, with out logging out from one?
will be updated soon!
- Mutiple terminals == virtual terminals
- To switch terminals use
clt + alt + fi
, where f refers to function key i th terminal , or usechvt <terminal-number>
(change terminal). - At max redhat has we can have 6 termianls default, 2 GUI (f1/f2), 4 CLI(f3-f6).
- Can you enable the mouse interation in linuc CLI? if yes. how?
CLI
-->GUI
, for this usestartx
command.- How to create more than 6 virtual teminals in redhat8?
will be updated soon!
will be updated soon!
> <filename.extension>
it creates a file (>
is a symbol), here we dont use any command. But how its possible to create file with out a command?
will be updated soon!