Saturday, 16 January 2021

Unix Command / Shall programming

 Unix Command    :

$logname - (Display the login name of user).
$exit - (Exit from the unique terminal).
$id - (Id no. of user).
$uname - (The name of the unique system).
$tty - (Display the terminal name).
$pwd - (Display the present working directory).
$date - (Display system date).
$date + %m - (System month).
$date + %h -(Display name of the month).
$date + %d - (Day of the system month).
$date + %y - (Display the system year).
$date + %h - (Hour of the system time).
$date + %m - (Display the minuet of system time).
$date + %s - (Display the second of system time).
$date + %m%s%h(Display the minuet , second & hours).
$clear - (Clear the screen).
$cal - (Calendar of current next , previous month).
$cal <year> - (Display the calendar of year).
$cal <June 2008> - (Display Only June calendar).
$echo - (Display text in normal format).
$banner <ABC> - (Bold and bigger format).
$echo path - (Display the current path).
$who -(List of the users at work).
$who i am -(Display particular terminal user).
$mkdir Narendra - (Create a directory name Narendra).
$cd - (Change directory).
$cd .. - (Change to current directory to previous directory).
$ls - (Long listing of directory).
$cal - (Display record of the file).
$chmod - (To change directory permissions).
$chmod go - x <file name> -(Not execute from group other).
$chmod +x <file name> - (To allow executable permissions).
$chmod +rwx <file name> - (To add permissions).
$chmod -rwx <file name> - (Directory name to remove permissions).
$chmod -wx <file name> - (File name to take out write and executable permissions).
$ls -m* - (All the files starting with m).
$ls -x - (Read wise file listing).
$ls -r -(Sort in reverse order).
$ls -(All file list in sorted order).
$ls -fx -(Display start after all directory and executive file).
$s-tu -(Sorts file by access time).
$ls -t  -(Sort file by modification time).
$wc <F1> -(Count the line , word , character of F1 file).
$cp <file1 file2> -(Copy the content of file1 to file2).
$x=5 -(Assign a value of a variable).
$bc 10/2*3=15
$man - (Can get all features and functionality).
$spell <f1> - (List of wrong spelling of f1 file).
$lp <f1> - (Printing a file).
$comm <f1 f2> - (Compare file line wish and display the common text).
$set - (Display all system variable).
$finger - (Display detail of user).
$greap -(Such in the part in the file and return the line number in which they were found).
$gzip - (Produces a compress zip file).
$gunzip - (Uncompressed file).
$du - (Generate of the report of the user).
$df - (Generate the report of disk free).
$ulimit - (User limit indicate).
$ping - (The command will begin printing the result).
$sort <f1> - (Sort the file contains f1).
$head -10 <f1> - (Display of 10 line of the file).
$tail -10 <f1> - (Last 10 line of the file).
$ps - (Indicate which process are running current instant).

Example 1:

create a directory name.
D: Name1.1
F: f1(output of ls)
F: f2(blank file)
D: Name1.1.1
F:f3
F:f4
Remove f3 as f3.1
copy the content of f1 to f2
create another directory Name1.1.2 inside Name1.1
Delete the directory.
Give read ,write ,executed permission for f2 to others.
with down executed permission from group.
move f3.1 to Name1.1
(Name will your Name, F denotes file and D denotes directory).


Example 2 :
Create a directory cst create another directory cst 1.1 inside cst directory. Inside cst1.1 there are two files f1 and f2. F1 contains output of ls. And f2 is a blank file. Rename f2 as f2.1





2 comments:

Mario-Game-Program-In-Python

  Mario-Game-Program-In-Python  Simple Mario Game:   Code: import pygame import sys pygame.init() WINDOW_WIDTH = 1200 WINDOW_HEIGHT = 600 FP...