Skip to main content

System Software | Device Drivers | Part - 2

Device Driver is a software & this is a type of system software. Driver are need for all the hardware installed in the computer because these drivers help to connect the hardware to the operating system, Without drivers the operating system will not give any commands. "The Driver acts like a bridge between the O/S & Hardware" Which Devices need Drivers : All hardware devices that are unknown to the operating system or Components that the operating system does not understand, drivers are need for them. Some device drivers come with hardware which is available in the CD & Some hardware requires drivers to be downloaded from the internet.  List of hardware device that require drivers : Card Reader Modem Motherboard Chipset Printer Web Cam Wi-fi Adapter Scanner Controller USB Devices Video Card Sound Card Which Devices not need Drivers : Nowadays, many drivers come in the operating system, due to which some hardware does not require drivers tha...

Full Use of cal(Calendar) and ncal Command in Kali Linux

 Hello guys I am Dr Hack Virus ! 

If you like my post so comment in my post and tell me what you need! 

I started a Ethical Hacking Course  So stay with me 
You also Follow me on-

Now i come with the new and interesting topic is Cal Command Cal mean calendar.I will start the calendar command from the beginning, stay with me in this topic. I show you all Calendar command step by step. Let start!

If you want to quickly view a calendar on the terminal in Linux, then cal is the command-line tool that should be use. By default the command displays the current Date & Month in output with highlighting.

We have same command for calendar in Linux Terminal is ncal (New Calendar). The ncal commands provides the same functions of cal command. In ncal command same syntax is  different to cal command syntax.

"# cal [ -m [ month ] ] [ -y [ year ] ] [-3] [-1] [-A [Number] ] [-B [Number] ] [-d [yyyy-mm] ]"

"# ncal [ -m [ month ] ] [ -y [ year ] ] [-3] [-1] [-A [Number] ] [-B [Number] ] [-d [yyyy-mm] ] [-p]

[-C] [-e] [-o] [-w] [-M] [-S] [-b]"

  • The cal & ncal Command

The cal utility displays the calendar in the traditional horizontal format. It output show the current month and date.

The ncal(New Calendar) command displays the calendar in the vertical format.


  • Turn off the today's date highlight 

In default output the current date is highlight in the white box. If we turn off this highlighting we use the -h command.

-h = don't highlighting today's date

command = ncal -h and press enter



*This cal -h command does not work in cal utility. 

  • Display the Specified Month

The cal/ncal commands displays the current month by default, but we can use the -m[month [numeric value] ] command line option in order to have a specific month displayed. In this command we use the numeric value[1-12]  or month name example jan-dec that represent the specified month.

  • command 

 cal/ncal -m[1-12] or cal/ncal -m[jan-dec]




* If you specify a number followed by the letter f or p the month of the following or previous year.
f = Following Year 
p = Previous Year

  • command in terminal 
 
cal/ncal -m [numeric value 1-12]f
cal/ncal -3 [numeric value 1-12]p



  • Entire Year Calendar 
We see the complete year calendar using the -y command line option. Use this option in order to view the calendar for specific year example : -y 2019, -y 1980 etc. 

  • Command 
cal/ncal 2019 [Specific year]
cal/ncal -y [This command for current year]
cal ncal -y 2019 [This command for specific year]




  • Display Previous,Current and Coming Month  
If you want to see the last,current and coming month on your screen so pass this command in your terminal -3. This command show you 3 month's calendar.

  • command
cal/ncal -3 



  • Display Only this month 
This is the default use this option to view the calendar of only one month.



  • Julian Calendar and Julian days 

Display a Julian calendar all days are numbered form January 1, rather then from the beginning of the month. We type the command for Julian days -j and for specific month -m[numeric value or Month name] -j  press enter. 
  • Command  
cal/ncal -j [current month]
cal/ncal -m -j [Specific month]




  • Add a specific number of month before or after the current one in output
A - [After] By using this command we see the current month and also see the after coming month.
B - [Before] By using this command we see the current month and also see the before previews months.
 
  • Command 
cal/ncal -A[1-1000000000]
cal/ncal -B[1-10000]
cal/ncal -B4  -A3




  • Define a particular month and year
If you want see the particular month/year by using the -d[define] command. This option requires a year and month to passed in yyyy-mm format.
  • Command
cal/ncal -d yyyy-mm [2019-05]


  • Date of Easter and Orthodox Easter
Display the date of Easter for western calendar. This option exists because Easter is an defining date when calculating traditional calendar dates.The ncal command to displays the date of orthodox easter(for Greek and Russian orthodox churches). The latter asks ncal to display date of Easter for western churches.
  • Command 
ncal -e [Easter Date]
ncal -o [Orthodox Easter]



  • Number of the Week  
To print the week number below each column use the -w[week] command in terminal. The last row displays the number of week.
  • Command 
ncal -w 
ncal -m -w


  • Change the starting day of the Week 
- If you want to starting day is Monday of the week we use the -M[monday] command in Linux Terminal.
- If you want to starting day is Sunday of the week we use the -S[sunday] command in Linux Terminal.

  • Command
ncal -M [Sunday to Monday]

ncal -S [Monday to Sunday]



  • Display Output like cal command

By using this command ncal output comes like cal command [Horizontal Type]. Here we have 2 type commands let see the use !

  • Command
ncal -C 
ncal -b





Comments

Popular posts from this blog

whoami command in Kali Linux by Dr Hack Virus

 Hello guys I am Dr Hack Virus coming with new topic of Kali Linux Command.  Many users have problems that how to find the current user in Kali Linux, so i show you how to find the current user in Linux Operating System & this is basic command in Linux so then all users learn this command. So let Start ! Syntax  " whoami [options] "   whoami  This command display the username of the current user which are the currently login in the system.  whoami command is used both in Unix Operating System & Window Operating system. "Command" whoami Display the name of the user [ root ] who runs the command. Options  --help [ Display a help message and exit] --version [ Display version information and exit] these both command use the two times hyphen[ - ] symbol We have more command find out the who the current login in the system 1. id -un   " This command is works as a whoami command " 2. users " Users command in Linux system is used to show th...

Html Basic Fundamentals Part - 2

Hello Guys before post we talk about the html Structure In this topic we cover the HTML basic fundamentals. So let start the! Why We need the HTML editor ? A simple text editor or Upgraded text editor is you need to learn HTML .  A text where we can write our HTML code and also modify it. Many types HTML editor available on the internet but i show you 3 type HTML editor Notepad Notepad++ Bracket  Notepad is the Default Text Editor which comes with the windows operating system. Notepad++   and Bracket is the external software which was the need to install in our system.  What is the HTML Tag/Element/Pre-Define-Keywords ? HTML is a Markup Language and Markup Language is Set of Markup Tags . HTML tags like a Pre Define Keywords which how does display the content the web browser. We can also call the HTML tags the HTML elements.  HTML tags over or contains the three major parts of the HTML web page  Opening Tag Content  Closing Tag   SYSTENX OF ...

Html Heading Tags - Dr Hack Virus

Pre                                               NEXT Heading Tag   Any Content needs the heading . Heading Show you about the matter & any document start with the heading , html heading tag define as a tittle and subtitle which you want show on webpages.  No matter what sort of document you create, heading are titles or subtitles that you want to display on a page it's just about tells you the what purpose. The purpose of the headline is that by looking at it, we immediately find out on what subject it is. HTML headings using <hn> Elements  here h is heading & n is a Natural Number which ranges is 1 to 6 . HTML heading has six levels, which use the elements <h1>, <h2>,  <h3>,  <h4>,  <h5 > and <h6 > .  Importance of Heading : The Heading Element carry all the universal attribute. Each ...