The document describes various utility commands in Unix/Linux systems. It provides the syntax and examples of commands for working with files, directories, manipulating text and data, performing operations and comparisons. A total of 41 different commands are described across 26 pages, including commands for viewing files and directories (ls, cat), manipulating files and folders (cp, mv, rm), searching/filtering text (grep), date/time utilities (date), input/output redirection and more. For each command, the syntax, options, and examples of usage are provided.
This document provides an overview of various modules related to Unix shell scripting. It covers topics like getting started with Unix, general purpose utilities, working with directories and files, the shell, vi editor, file permissions, filters, shell scripting, communication utilities and system administration. For each topic, it describes key commands and concepts. For example, in the directories and files module it explains commands like ls, cd, mkdir etc. and concepts like absolute vs relative paths. The file permissions module covers the chmod command and octal notation for setting permissions.
This presentation provides Unix tips and tricks. It discusses using control operators and mkdir -p for directory creation. It also covers breaking up long command lines, command substitution, and using for loops. Additional tips include using history commands, grepping files with awk, resetting a corrupted terminal, and making typescripts of terminal sessions. Ways to handle remote systems, process input, redirect I/O, and manage open files are also presented.
This document provides an overview of the basics of Unix including its history and development. It describes Unix as a command user interface (CUI) operating system that is case sensitive and allows multitasking. Various flavors of Unix are then listed along with common commands like date, cal, uname and their usage. The document also covers working with files and directories through commands like cat, touch, rm, mkdir and managing files through commands like cp, mv and viewing files with ls.
This document provides a summary of basic Linux commands including:
- ls lists files and directories
- cp copies files and directories
- mv moves or renames files and directories
- rm removes files or directories
- touch creates empty files
- cat outputs the contents of files
- mkdir creates directories
- grep searches for patterns in files
- ps displays currently running processes
- top displays active processes and system resources
Workshop on command line tools - day 1Leandro Lima
Slides of the I Workshop on command-line tools with the collaboration of CAG (Center for Applied Genomics - Children's Hospital of Philadelphia) bioinformatics analysts.
1st day
This document provides an overview of basic UNIX commands and utilities for general use, performance monitoring and debugging. It discusses commands for file manipulation, permissions, searching, networking and more. Specific utilities covered include ls, cat, grep, find, top and netstat. The document also reviews UNIX concepts like HOME directories, hidden files and aliases. Examples are given for many commands.
5_File_Handling_Commands__vi_editor_and_environment_variablesGautam Raja
This document provides a content manual for the TATA CONSULTANCY SERVICES Pre ILP – Unix LOUNGE. It contains two chapters, the first discussing basic Unix file commands like touch, cat, cp, mv, rm, and find. The second chapter covers basics of the vi text editor and environment variables. It describes vi modes, commands for navigation, editing, saving and exiting. It also explains how environment variables control the system behavior and lists some common ones like HOME, PATH, and PS1.
This document provides an overview of various modules related to Unix shell scripting. It covers topics like getting started with Unix, general purpose utilities, working with directories and files, the shell, vi editor, file permissions, filters, shell scripting, communication utilities and system administration. For each topic, it describes key commands and concepts. For example, in the directories and files module it explains commands like ls, cd, mkdir etc. and concepts like absolute vs relative paths. The file permissions module covers the chmod command and octal notation for setting permissions.
This presentation provides Unix tips and tricks. It discusses using control operators and mkdir -p for directory creation. It also covers breaking up long command lines, command substitution, and using for loops. Additional tips include using history commands, grepping files with awk, resetting a corrupted terminal, and making typescripts of terminal sessions. Ways to handle remote systems, process input, redirect I/O, and manage open files are also presented.
This document provides an overview of the basics of Unix including its history and development. It describes Unix as a command user interface (CUI) operating system that is case sensitive and allows multitasking. Various flavors of Unix are then listed along with common commands like date, cal, uname and their usage. The document also covers working with files and directories through commands like cat, touch, rm, mkdir and managing files through commands like cp, mv and viewing files with ls.
This document provides a summary of basic Linux commands including:
- ls lists files and directories
- cp copies files and directories
- mv moves or renames files and directories
- rm removes files or directories
- touch creates empty files
- cat outputs the contents of files
- mkdir creates directories
- grep searches for patterns in files
- ps displays currently running processes
- top displays active processes and system resources
Workshop on command line tools - day 1Leandro Lima
Slides of the I Workshop on command-line tools with the collaboration of CAG (Center for Applied Genomics - Children's Hospital of Philadelphia) bioinformatics analysts.
1st day
This document provides an overview of basic UNIX commands and utilities for general use, performance monitoring and debugging. It discusses commands for file manipulation, permissions, searching, networking and more. Specific utilities covered include ls, cat, grep, find, top and netstat. The document also reviews UNIX concepts like HOME directories, hidden files and aliases. Examples are given for many commands.
5_File_Handling_Commands__vi_editor_and_environment_variablesGautam Raja
This document provides a content manual for the TATA CONSULTANCY SERVICES Pre ILP – Unix LOUNGE. It contains two chapters, the first discussing basic Unix file commands like touch, cat, cp, mv, rm, and find. The second chapter covers basics of the vi text editor and environment variables. It describes vi modes, commands for navigation, editing, saving and exiting. It also explains how environment variables control the system behavior and lists some common ones like HOME, PATH, and PS1.
The document describes various Linux commands for displaying system information, manipulating files and directories, and filtering data. It provides examples of commands like date, cal, who, ls, cat, cp, mv, rm, pwd and others along with descriptions and sample outputs. Cut, paste, sort commands are described for filtering specific fields from files based on delimiters.
This document provides information on standard input/output redirection and pipes in Linux. It discusses redirecting standard output and error to files using >, >>, 2>, and &>, connecting commands with pipes using |, and redirecting standard input using <. Examples are given of using these techniques with commands like find, ls, sort, uniq, and mail. The document also covers using for loops to iterate over sets of values and command output.
This document provides information about basic shell programming in Bash. It covers defining shell scripts with shebang lines, controlling script execution with permissions. It also covers various Bash programming constructs including variables, user input, conditional statements like if-then-else and case, looping with while, until and for, and defining functions. Examples are provided for each concept to demonstrate their usage in Bash scripts.
Unix shell scripts are text files that can be run by an interpreter to perform tasks. They differ from compiled programs in that they do not need to be compiled and can be portable across machines. Shell scripts are useful for lightweight operations like file manipulation, sending emails, and network communication, while compiled programs are better for CPU intensive or critical applications. Common shell commands include head, tail, echo, sort, cat, grep, find, wc, diff, and more.
The document discusses various Unix/Linux commands for text processing and file management. It describes the commands head, tail, tr, sort, cut, uniq, diff, tee, find, and grep. Head displays the first few lines of a file, tail displays the last few lines, and tr translates or deletes characters. Sort sorts the lines of a text file, cut removes sections from each line, and uniq removes duplicate lines from a sorted file. Diff finds differences between two files.
Unix 1st sem lab programs a - VTU KarnatakaiCreateWorld
This document contains code for several shell scripting exercises:
1. Lab1a accepts command line arguments and prints them in reverse order.
2. Lab1b checks if two file permissions are identical, printing the common permission or each file's individual permissions.
3. Lab2b creates all directories in a path if they don't exist.
4. Lab9b counts and reports the occurrences of words from the first argument file that are present in other argument files.
This document provides an introduction and overview of Linux shell scripting. It begins by explaining key concepts like the kernel, shell, processes, redirection and pipes. It then covers variables, writing and running scripts, quotes, arithmetic, arguments, exit status, wildcards, and basic programming commands like echo, if/test, loops, case. The document concludes with more advanced commands like functions, I/O redirection, traps and examples.
This document provides information about using the PHP command line interface (CLI) SAPI. It discusses when to use the CLI SAPI, such as for cron jobs, batch tasks, daemons, and process control. It also provides examples of using the PHP binary to execute scripts from the command line, pass arguments, read from STDIN, and use options like -a for interactive mode, -r to run PHP code directly, and -i to get PHP configuration information.
The document provides information on various UNIX commands for file and directory management. Some key points:
- The cat command is used to create, view, and append to files. It can also be used to create multiple files at once.
- The rm command removes files and directories, including options to remove forcibly or interactively.
- The ls command lists files and directories with various options to change the output format.
- The cp command copies files between locations including options for backup and forcing overwrites.
- The mv command moves files and directories between locations with similar options to cp.
- Permissions, umask, and wildcards like ?,* are also discussed for controlling file access and
This Bash script generates other Bash scripts. It takes a command name as input and creates a script file for that command in the /usr/local/bin/scripts directory. It adds standard header information and functions for usage, version, and error handling. The generated script is given execute permissions and a symbolic link is created to the script from /usr/local/bin using the input command name.
Pipe allows the output of one command to be used as input for another command. The "|" symbol is used to connect commands. Common examples include using "ls | more" to view a directory listing page by page or "who > userlist.txt" to redirect the output of the who command to a file. Linux treats the keyboard, terminal screen, and error messages as standard input, output, and error. Redirectors like "<" and ">" can change where input and output are directed. Commands like sort, grep, and more are examples of filters that take input, manipulate it, and produce output.
The document provides 22 shell programming examples covering tasks like checking if a number is even or odd, finding leap years, calculating area and circumference of a circle, checking if a number is a palindrome, finding sum of odd and even numbers in a set, calculating roots of a quadratic equation, checking if a number is Armstrong or prime, generating prime numbers between 1-50, finding sum of squares or cubes of digits of a number, executing UNIX commands using case statements, counting vowels in text, displaying student grades, finding smallest or second highest number, finding single digit sum of a number, and finding sum of odd and even digits from a number.
The document provides an overview of basic Linux commands organized into the following sections:
1. General purpose utilities such as date, echo, printf, calculator applications
2. Linux file system structure and commands for viewing file attributes, permissions, ownership
3. Commands for file handling, concatenation, pagination and comparing files
GNOME Terminal is a terminal emulator for the GNOME desktop environment that allows users to access a UNIX shell while using their graphical desktop. To open Terminal, users can search for it on the Dash or press Ctrl + Alt + T. The display prompt includes the username, computer name, and current directory. Basic commands demonstrated include pwd, ls, cd, touch, mkdir, rmdir, and cat. File permissions can be viewed and modified using ls -l and chmod. Ownership of files and directories can be changed with chown.
The document provides an overview of essential Linux commands and concepts, organized into sections on essential commands, command structure, help, moving around directories, reading and writing files, directories, moving and renaming files, copying and removing files, links, searching, ownership and permissions, switching users, and useful commands. Key commands covered include ls, cd, pwd, touch, mkdir, mv, cp, rm, chmod, and sudo. File permissions are explained using rwx notation and octal representation.
The document discusses shell scripts, including what they are, their components, how to invoke them, get help, and definitions of terms. It provides examples of shell scripting concepts like arguments, regular expressions, quoting, variables, command forms, and simple commands. It also includes examples of shell scripts and proposes homework assignments involving shell scripts.
This document provides a list of common Unix commands along with a brief description of what each command does. It includes commands for navigating and viewing files, editing text, finding and manipulating text, compressing and archiving files, remote access, printing, and more. The summary at the end highlights some frequently used commands for listing users, viewing directories, viewing parts of files, managing processes, text editing, disk usage, searching text, and remote access.
The document provides an overview of various Unix/Linux command line concepts across 5 chapters. It describes commands for listing files and directories (ls), creating directories (mkdir), changing directories (cd), viewing the current directory (pwd), copying, moving and removing files (cp, mv, rm), searching files (grep), viewing processes (ps), running jobs in background (&), managing jobs (jobs, fg, bg) and killing processes (kill). It also covers file permissions (chmod), symbolic and hard links (ln), input/output redirection (> ,|), piping (|) and getting help (man, whatis).
The document discusses Ruby testing tools including Rake for building tasks, RSpec for behavior-driven development testing, and Webrat for web application testing. It provides examples of using Rake to define tasks for compiling Flex applications, examples of RSpec tests for methods like factorial and prime?, and an example Webrat test for creating a CEO letter campaign. Links are also included for the Rake, RSpec and Webrat documentation.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document describes various Linux commands for displaying system information, manipulating files and directories, and filtering data. It provides examples of commands like date, cal, who, ls, cat, cp, mv, rm, pwd and others along with descriptions and sample outputs. Cut, paste, sort commands are described for filtering specific fields from files based on delimiters.
This document provides information on standard input/output redirection and pipes in Linux. It discusses redirecting standard output and error to files using >, >>, 2>, and &>, connecting commands with pipes using |, and redirecting standard input using <. Examples are given of using these techniques with commands like find, ls, sort, uniq, and mail. The document also covers using for loops to iterate over sets of values and command output.
This document provides information about basic shell programming in Bash. It covers defining shell scripts with shebang lines, controlling script execution with permissions. It also covers various Bash programming constructs including variables, user input, conditional statements like if-then-else and case, looping with while, until and for, and defining functions. Examples are provided for each concept to demonstrate their usage in Bash scripts.
Unix shell scripts are text files that can be run by an interpreter to perform tasks. They differ from compiled programs in that they do not need to be compiled and can be portable across machines. Shell scripts are useful for lightweight operations like file manipulation, sending emails, and network communication, while compiled programs are better for CPU intensive or critical applications. Common shell commands include head, tail, echo, sort, cat, grep, find, wc, diff, and more.
The document discusses various Unix/Linux commands for text processing and file management. It describes the commands head, tail, tr, sort, cut, uniq, diff, tee, find, and grep. Head displays the first few lines of a file, tail displays the last few lines, and tr translates or deletes characters. Sort sorts the lines of a text file, cut removes sections from each line, and uniq removes duplicate lines from a sorted file. Diff finds differences between two files.
Unix 1st sem lab programs a - VTU KarnatakaiCreateWorld
This document contains code for several shell scripting exercises:
1. Lab1a accepts command line arguments and prints them in reverse order.
2. Lab1b checks if two file permissions are identical, printing the common permission or each file's individual permissions.
3. Lab2b creates all directories in a path if they don't exist.
4. Lab9b counts and reports the occurrences of words from the first argument file that are present in other argument files.
This document provides an introduction and overview of Linux shell scripting. It begins by explaining key concepts like the kernel, shell, processes, redirection and pipes. It then covers variables, writing and running scripts, quotes, arithmetic, arguments, exit status, wildcards, and basic programming commands like echo, if/test, loops, case. The document concludes with more advanced commands like functions, I/O redirection, traps and examples.
This document provides information about using the PHP command line interface (CLI) SAPI. It discusses when to use the CLI SAPI, such as for cron jobs, batch tasks, daemons, and process control. It also provides examples of using the PHP binary to execute scripts from the command line, pass arguments, read from STDIN, and use options like -a for interactive mode, -r to run PHP code directly, and -i to get PHP configuration information.
The document provides information on various UNIX commands for file and directory management. Some key points:
- The cat command is used to create, view, and append to files. It can also be used to create multiple files at once.
- The rm command removes files and directories, including options to remove forcibly or interactively.
- The ls command lists files and directories with various options to change the output format.
- The cp command copies files between locations including options for backup and forcing overwrites.
- The mv command moves files and directories between locations with similar options to cp.
- Permissions, umask, and wildcards like ?,* are also discussed for controlling file access and
This Bash script generates other Bash scripts. It takes a command name as input and creates a script file for that command in the /usr/local/bin/scripts directory. It adds standard header information and functions for usage, version, and error handling. The generated script is given execute permissions and a symbolic link is created to the script from /usr/local/bin using the input command name.
Pipe allows the output of one command to be used as input for another command. The "|" symbol is used to connect commands. Common examples include using "ls | more" to view a directory listing page by page or "who > userlist.txt" to redirect the output of the who command to a file. Linux treats the keyboard, terminal screen, and error messages as standard input, output, and error. Redirectors like "<" and ">" can change where input and output are directed. Commands like sort, grep, and more are examples of filters that take input, manipulate it, and produce output.
The document provides 22 shell programming examples covering tasks like checking if a number is even or odd, finding leap years, calculating area and circumference of a circle, checking if a number is a palindrome, finding sum of odd and even numbers in a set, calculating roots of a quadratic equation, checking if a number is Armstrong or prime, generating prime numbers between 1-50, finding sum of squares or cubes of digits of a number, executing UNIX commands using case statements, counting vowels in text, displaying student grades, finding smallest or second highest number, finding single digit sum of a number, and finding sum of odd and even digits from a number.
The document provides an overview of basic Linux commands organized into the following sections:
1. General purpose utilities such as date, echo, printf, calculator applications
2. Linux file system structure and commands for viewing file attributes, permissions, ownership
3. Commands for file handling, concatenation, pagination and comparing files
GNOME Terminal is a terminal emulator for the GNOME desktop environment that allows users to access a UNIX shell while using their graphical desktop. To open Terminal, users can search for it on the Dash or press Ctrl + Alt + T. The display prompt includes the username, computer name, and current directory. Basic commands demonstrated include pwd, ls, cd, touch, mkdir, rmdir, and cat. File permissions can be viewed and modified using ls -l and chmod. Ownership of files and directories can be changed with chown.
The document provides an overview of essential Linux commands and concepts, organized into sections on essential commands, command structure, help, moving around directories, reading and writing files, directories, moving and renaming files, copying and removing files, links, searching, ownership and permissions, switching users, and useful commands. Key commands covered include ls, cd, pwd, touch, mkdir, mv, cp, rm, chmod, and sudo. File permissions are explained using rwx notation and octal representation.
The document discusses shell scripts, including what they are, their components, how to invoke them, get help, and definitions of terms. It provides examples of shell scripting concepts like arguments, regular expressions, quoting, variables, command forms, and simple commands. It also includes examples of shell scripts and proposes homework assignments involving shell scripts.
This document provides a list of common Unix commands along with a brief description of what each command does. It includes commands for navigating and viewing files, editing text, finding and manipulating text, compressing and archiving files, remote access, printing, and more. The summary at the end highlights some frequently used commands for listing users, viewing directories, viewing parts of files, managing processes, text editing, disk usage, searching text, and remote access.
The document provides an overview of various Unix/Linux command line concepts across 5 chapters. It describes commands for listing files and directories (ls), creating directories (mkdir), changing directories (cd), viewing the current directory (pwd), copying, moving and removing files (cp, mv, rm), searching files (grep), viewing processes (ps), running jobs in background (&), managing jobs (jobs, fg, bg) and killing processes (kill). It also covers file permissions (chmod), symbolic and hard links (ln), input/output redirection (> ,|), piping (|) and getting help (man, whatis).
The document discusses Ruby testing tools including Rake for building tasks, RSpec for behavior-driven development testing, and Webrat for web application testing. It provides examples of using Rake to define tasks for compiling Flex applications, examples of RSpec tests for methods like factorial and prime?, and an example Webrat test for creating a CEO letter campaign. Links are also included for the Rake, RSpec and Webrat documentation.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides syntax and descriptions for various Linux commands including bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. It explains what each command is used for and provides the basic syntax.
The document provides descriptions of Linux commands including their purpose, syntax, and usage. It covers common commands like bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. For each command, it lists the command name, brief description, and syntax.
The document provides descriptions of Linux commands including their purpose, syntax, and usage. It covers common commands like bc, cal, cat, cd, cp, date, echo, grep, id, last, lastlog, ls, man, mkdir, mv, pwd, rm, rmdir, sort, shutdown, who, whois, more, less, clear, cmp, wc, whoami, head, and tail. For each command, it lists the command name, brief description, and syntax.
The document provides instructions on installing Linux and describes common Linux commands. It explains how to install Linux by booting from a CD, selecting language and keyboard settings, partitioning disks, and completing the installation process. It then lists and describes over 50 common Linux commands for viewing files, manipulating directories, searching files, managing processes, and more. Advanced commands are also included for checking system information and hardware.
I apologize, upon reviewing the document I do not feel comfortable generating a summary without the full context and intended purpose of the technical document. Summarizing technical or programming documentation requires understanding the overall topic and goals, which are not clear from this single document.
This document describes the commands available in BusyBox. It provides brief 1-3 sentence descriptions of commands like addgroup, adduser, adjtimex, ar, arping, ash, awk, basename, bunzip2, bzcat, cal, cat, chgrp, chmod, chown, chroot, chvt, clear, cmp, cp, cpio, crond, crontab, cut, date, dc, dd, deallocvt, delgroup, deluser, devfsd, df, dirname, dmesg, dos2unix, dpkg, dpkg-deb, du, dumpkmap and more. Options and examples are provided for some commands.
Unix is an operating system developed in the 1960s that is stable, multi-user, and multi-tasking. It has several versions including Solaris, Linux, and MacOS X. The UNIX operating system consists of the kernel, shell, and programs. The kernel allocates resources and handles file storage and communication. The shell acts as an interface between the user and kernel. Common commands in UNIX include ls to list files, cat to view files, grep to search files, and rm to delete files.
LAMP stands for Linux, Apache, MySQL, and PHP. Linux is a free open source operating system based on Unix. The document provides syntax and explanations for many Linux commands related to file management, system information, processes, and more. It also defines some shell commands like while, which, date, and sleep.
LAMP stands for Linux, Apache, MySQL, and PHP. Linux is a free open source operating system based on Unix. The document provides syntax and explanations for many Linux commands related to system administration, file management, process management and more. It describes commands for changing directories, copying/moving files, comparing files, installing software, and more.
LAMP stands for Linux, Apache, MySQL, and PHP. Linux is a free open source operating system based on Unix. The document provides syntax and explanations for many Linux commands related to file management, system information, processes, and more. It also defines some shell commands like while, which, date, and sleep.
LAMP stands for Linux, Apache, MySQL, and PHP. Linux is a free open source operating system based on Unix. The document provides syntax and examples for many Linux commands for directory navigation, file manipulation, system information, and more. It also describes some basic shell commands like while, case, env, and source.
This document provides instructions for 27 common Linux commands: mkdir, rmdir, ls, cd, cat, touch, wc, who, pwd, rm, mv, chmod, cp, grep, cal, date, vi, tput, ps, export, type, tail, sudo, head, man, clear, and adduser. For each command, it lists the syntax and provides 1-3 examples of common uses. The document is presented over 28 pages with the commands organized topic-by-topic and includes formatting like headings and indentation to aid readability.
A Comprehensive Guide to DeFi Development Services in 2024Intelisync
DeFi represents a paradigm shift in the financial industry. Instead of relying on traditional, centralized institutions like banks, DeFi leverages blockchain technology to create a decentralized network of financial services. This means that financial transactions can occur directly between parties, without intermediaries, using smart contracts on platforms like Ethereum.
In 2024, we are witnessing an explosion of new DeFi projects and protocols, each pushing the boundaries of what’s possible in finance.
In summary, DeFi in 2024 is not just a trend; it’s a revolution that democratizes finance, enhances security and transparency, and fosters continuous innovation. As we proceed through this presentation, we'll explore the various components and services of DeFi in detail, shedding light on how they are transforming the financial landscape.
At Intelisync, we specialize in providing comprehensive DeFi development services tailored to meet the unique needs of our clients. From smart contract development to dApp creation and security audits, we ensure that your DeFi project is built with innovation, security, and scalability in mind. Trust Intelisync to guide you through the intricate landscape of decentralized finance and unlock the full potential of blockchain technology.
Ready to take your DeFi project to the next level? Partner with Intelisync for expert DeFi development services today!
Have you ever been confused by the myriad of choices offered by AWS for hosting a website or an API?
Lambda, Elastic Beanstalk, Lightsail, Amplify, S3 (and more!) can each host websites + APIs. But which one should we choose?
Which one is cheapest? Which one is fastest? Which one will scale to meet our needs?
Join me in this session as we dive into each AWS hosting service to determine which one is best for your scenario and explain why!
5th LF Energy Power Grid Model Meet-up SlidesDanBrown980551
5th Power Grid Model Meet-up
It is with great pleasure that we extend to you an invitation to the 5th Power Grid Model Meet-up, scheduled for 6th June 2024. This event will adopt a hybrid format, allowing participants to join us either through an online Mircosoft Teams session or in person at TU/e located at Den Dolech 2, Eindhoven, Netherlands. The meet-up will be hosted by Eindhoven University of Technology (TU/e), a research university specializing in engineering science & technology.
Power Grid Model
The global energy transition is placing new and unprecedented demands on Distribution System Operators (DSOs). Alongside upgrades to grid capacity, processes such as digitization, capacity optimization, and congestion management are becoming vital for delivering reliable services.
Power Grid Model is an open source project from Linux Foundation Energy and provides a calculation engine that is increasingly essential for DSOs. It offers a standards-based foundation enabling real-time power systems analysis, simulations of electrical power grids, and sophisticated what-if analysis. In addition, it enables in-depth studies and analysis of the electrical power grid’s behavior and performance. This comprehensive model incorporates essential factors such as power generation capacity, electrical losses, voltage levels, power flows, and system stability.
Power Grid Model is currently being applied in a wide variety of use cases, including grid planning, expansion, reliability, and congestion studies. It can also help in analyzing the impact of renewable energy integration, assessing the effects of disturbances or faults, and developing strategies for grid control and optimization.
What to expect
For the upcoming meetup we are organizing, we have an exciting lineup of activities planned:
-Insightful presentations covering two practical applications of the Power Grid Model.
-An update on the latest advancements in Power Grid -Model technology during the first and second quarters of 2024.
-An interactive brainstorming session to discuss and propose new feature requests.
-An opportunity to connect with fellow Power Grid Model enthusiasts and users.
Building Production Ready Search Pipelines with Spark and MilvusZilliz
Spark is the widely used ETL tool for processing, indexing and ingesting data to serving stack for search. Milvus is the production-ready open-source vector database. In this talk we will show how to use Spark to process unstructured data to extract vector representations, and push the vectors to Milvus vector database for search serving.
Digital Marketing Trends in 2024 | Guide for Staying AheadWask
https://www.wask.co/ebooks/digital-marketing-trends-in-2024
Feeling lost in the digital marketing whirlwind of 2024? Technology is changing, consumer habits are evolving, and staying ahead of the curve feels like a never-ending pursuit. This e-book is your compass. Dive into actionable insights to handle the complexities of modern marketing. From hyper-personalization to the power of user-generated content, learn how to build long-term relationships with your audience and unlock the secrets to success in the ever-shifting digital landscape.
Taking AI to the Next Level in Manufacturing.pdfssuserfac0301
Read Taking AI to the Next Level in Manufacturing to gain insights on AI adoption in the manufacturing industry, such as:
1. How quickly AI is being implemented in manufacturing.
2. Which barriers stand in the way of AI adoption.
3. How data quality and governance form the backbone of AI.
4. Organizational processes and structures that may inhibit effective AI adoption.
6. Ideas and approaches to help build your organization's AI strategy.
Generating privacy-protected synthetic data using Secludy and MilvusZilliz
During this demo, the founders of Secludy will demonstrate how their system utilizes Milvus to store and manipulate embeddings for generating privacy-protected synthetic data. Their approach not only maintains the confidentiality of the original data but also enhances the utility and scalability of LLMs under privacy constraints. Attendees, including machine learning engineers, data scientists, and data managers, will witness first-hand how Secludy's integration with Milvus empowers organizations to harness the power of LLMs securely and efficiently.
Unlock the Future of Search with MongoDB Atlas_ Vector Search Unleashed.pdfMalak Abu Hammad
Discover how MongoDB Atlas and vector search technology can revolutionize your application's search capabilities. This comprehensive presentation covers:
* What is Vector Search?
* Importance and benefits of vector search
* Practical use cases across various industries
* Step-by-step implementation guide
* Live demos with code snippets
* Enhancing LLM capabilities with vector search
* Best practices and optimization strategies
Perfect for developers, AI enthusiasts, and tech leaders. Learn how to leverage MongoDB Atlas to deliver highly relevant, context-aware search results, transforming your data retrieval process. Stay ahead in tech innovation and maximize the potential of your applications.
#MongoDB #VectorSearch #AI #SemanticSearch #TechInnovation #DataScience #LLM #MachineLearning #SearchTechnology
Introduction of Cybersecurity with OSS at Code Europe 2024Hiroshi SHIBATA
I develop the Ruby programming language, RubyGems, and Bundler, which are package managers for Ruby. Today, I will introduce how to enhance the security of your application using open-source software (OSS) examples from Ruby and RubyGems.
The first topic is CVE (Common Vulnerabilities and Exposures). I have published CVEs many times. But what exactly is a CVE? I'll provide a basic understanding of CVEs and explain how to detect and handle vulnerabilities in OSS.
Next, let's discuss package managers. Package managers play a critical role in the OSS ecosystem. I'll explain how to manage library dependencies in your application.
I'll share insights into how the Ruby and RubyGems core team works to keep our ecosystem safe. By the end of this talk, you'll have a better understanding of how to safeguard your code.
Skybuffer SAM4U tool for SAP license adoptionTatiana Kojar
Manage and optimize your license adoption and consumption with SAM4U, an SAP free customer software asset management tool.
SAM4U, an SAP complimentary software asset management tool for customers, delivers a detailed and well-structured overview of license inventory and usage with a user-friendly interface. We offer a hosted, cost-effective, and performance-optimized SAM4U setup in the Skybuffer Cloud environment. You retain ownership of the system and data, while we manage the ABAP 7.58 infrastructure, ensuring fixed Total Cost of Ownership (TCO) and exceptional services through the SAP Fiori interface.
Fueling AI with Great Data with Airbyte WebinarZilliz
This talk will focus on how to collect data from a variety of sources, leveraging this data for RAG and other GenAI use cases, and finally charting your course to productionalization.
GraphRAG for Life Science to increase LLM accuracyTomaz Bratanic
GraphRAG for life science domain, where you retriever information from biomedical knowledge graphs using LLMs to increase the accuracy and performance of generated answers
This presentation provides valuable insights into effective cost-saving techniques on AWS. Learn how to optimize your AWS resources by rightsizing, increasing elasticity, picking the right storage class, and choosing the best pricing model. Additionally, discover essential governance mechanisms to ensure continuous cost efficiency. Whether you are new to AWS or an experienced user, this presentation provides clear and practical tips to help you reduce your cloud costs and get the most out of your budget.
1. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 1
Utility Commands:-
1. date: - Date sets a system's date and time.
Syntax: - $ date [OPTION]… [+format]… [ENTER]
Format:
Option Description
%d Day of Month (e.g.01)
%m Month (01..12)
%y Last two digits of year(00..99)
%H Hour(00..23)
%M Minute (00..59)
%S Second (00..60)
%T Time; same as %H/%M/%S.
%D Date; same as %m/%d/%y
%h The abbreviated month name (e.g. Jan)
Example:
2. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 2
2. cal :- Shows the calendar.
Syntax:- $ cal [OPTION] …[ENTER]
Example:
3. type: - It locates the file in the directory.
Syntax: - $ type [FILENAME]… [ENTER]
Example:
3. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 3
4. echo: - Display a line of Text.
Syntax: - $ echo [arg...]… [ENTER]
Example:
5. man: - For showing the manual page of any command.
Syntax: - $ man [name..]… [ENTER]
Example:
4. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 4
6. whatis: -Display one line manual page description.
Syntax:- $ whatis [name]… [ENTER]
Example:
7. printf: - Format and print data.
Syntax: - printf(const char *format, ...);
Formats: Controls the output as in c printf.
Option Description
%s String
%d Decimal
%o Octal
%x Hexadecimal
%f Floating point
n New line
t Horizontal tab
v Vertical tab
Example:
5. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 5
8. pwd: - pwd (Present Working Directory) prints the name of current/working
directory.
Syntax:- $ pwd… [ENTER]
Example:
Directory Command
9. mkdir: - (Make Directory) It is used to create a new directory.
Syntax: - $ mkdir [OPTION]…Directory… [ENTER]
Options:
Option Description
-m (mode) set file mode (as in chmod)
-p (parent) no error if existing, make parent directories as needed
-v (verbose) print a message for each created directory
Example:
6. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 6
10. cd: - To change directory - change the current working directory to a specific Folder.
Syntax:- $ cd [filename] or [path]… [ENTER]
$ cd [OPTION]…Directory … [ENTER]
7. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 7
Example:
11. rmdir: - remove empty directories
Syntax: - $ rmdir [OPTION]... DIRECTORY… [ENTER]
Options:
Option Description
-p (parent) remove DIRECTORY and its ancestors; e.g., 'rmdir -p a/b/c' is
similar to 'rmdir a/b/c a/b a'
-v (verbose) print a message for each directory processed
Example:
8. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 8
12. ls: - List directory Contents.
Syntax: - $ ls [OPTION]…[FILE]…[ENTER]
Option:
Option Description
-a Do not ignore entries starting with.
-l use a long listing format
-t sort by modification time
-lat Same as -l-a-t
-i print the index number of each file
-R list subdirectories recursively
-s print the allocated size of each file, in blocks
-S sort by file size
-d list directory entries instead of contents, and do not dereference symbolic links
-m fill width with a comma separated list of entries
Example:
10. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 10
File Command
13. cat: - concatenate files and print on the standard output.
Syntax: - $ cat [OPTION]… [FILE]… [ENTER]
Option:
Option Description
-n number all output lines
-b number nonempty output lines, overrides –n
-T display TAB characters as ^I
-E display $ at end of each line
Example:
11. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 11
14. cp: -copy files and directories
Syntax: - $ cp [OPTION]... SOURCE... DIRECTORY… [ENTER]
Option:
Option Description
-i prompt before overwrite
-R copy directories recursively
-l hard link files instead of copying
-v Explain what is being done.
13. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 13
15. rm: - (Remove) remove files or directories.
Syntax: - $ rm [OPTION]... [FILE]... [ENTER]
Option:
Option Description
-i Prompt before every removal.
-R Remove directories and their contents recursively.
-v Explain what is being done.
14. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 14
Example:
16. mv: - move (rename) files.
Syntax: - $ mv [OPTION]... SOURCE... DIRECTORY… [ENTER]
Option:
Option Description
-i prompt before overwrite
-n do not overwrite an existing file
-f do not prompt before overwriting
-v explain what is being done
Example:
15. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 15
17. touch: -change file timestamps.
Syntax:- $ touch [OPTION]... FILE... [ENTER]
Example:
18. file: - Determine file type.
Syntax: -$ wc [OPTION]... [FILE]... [ENTER]
Example:
16. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 16
19. wc: - print newline, word, and byte counts for each file .
Syntax:- $ wc [OPTION]... [FILE]... [ENTER]
Option:
-c print the byte counts
-m print the character counts
-l print the newline counts
-L print the maximum display width
-w print the word counts
Example:
17. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 17
20. chmod: - change file mode bits.
Syntax: -$ chmod [OPTION]... MODE [, MODE]... FILE... [ENTER]
Where each MODE is of the form [ugoa...][[-+=][rwx...]...]
U User
G Group
O Others
A All
R Read
W Write
X Execute
+ Causes the selected file mode bits to be added to the existing file mode
- Causes the selected file mode bits to be removed to the existing file mode
= Causes the selected file mode bits to be added to the existing file mode.
Example:
19. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 19
Input-Output Redirection
21. Output Redirection: - Denoted by > .
> (Truncate)
>> (Append)
Syntax: - $ command > Filename… [ENTER]
$ command >> Filename… [ENTER]
Example:
22. Input Redirection: - Denoted by < .
Syntax: - $ command < filename… [ENTER]
Here, File is considered as Standard input.
Example:
23. Error Redirection: - Output channel for error messages is standard error.
Default destination is user’s screen.
Syntax: - $ command > filename… [ENTER]
Example:
20. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 20
Read Statement
24. read: - Used to taking one or more input from user or read from a file descriptor.
Syntax: - $ read varname… [ENTER]
To unset the variable:
$ unset varname… [ENTER]
Example:
Expression Statement
25. expr: - evaluate expressions.
Syntax: - $ expr EXPRESSION… [ENTER]
$ expr OPTION… [ENTER]
EXPRESSION may be:
21. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 21
Expression Description
ARG1 | ARG2 ARG1 if it is neither null nor 0, otherwise ARG2
ARG1 & ARG2 ARG1 if neither argument is null or 0, otherwise 0
ARG1 < ARG2 ARG1 is less than ARG2
ARG1 <= ARG2 ARG1 is less than or equal to ARG2
ARG1 = ARG2 ARG1 is equal to ARG2
ARG1 != ARG2 ARG1 is unequal to ARG2
ARG1 >= ARG2 ARG1 is greater than or equal to ARG2
ARG1 > ARG2 ARG1 is greater than ARG2
ARG1 + ARG2 Arithmetic sum of ARG1 and ARG2
ARG1 - ARG2 Arithmetic difference of ARG1 and ARG2
ARG1 * ARG2 Arithmetic product of ARG1 and ARG2
ARG1 / ARG2 Arithmetic quotient of ARG1 divided by ARG2
ARG1 % ARG2 Arithmetic remainder of ARG1 divided by ARG2
length STRING Length of STRING.
Example:
26. test: - check file types and compare values.
Syntax: -$ test EXPRESSION... [ENTER]
EXPRESSION may be:
Expression Description
INTEGER1 -eq INTEGER2 INTEGER1 is equal to INTEGER2
INTEGER1 -gt INTEGER2 INTEGER1 is greater than INTEGER2
INTEGER1 -le INTEGER2 INTEGER1 is less than or equal to INTEGER2
INTEGER1 -lt INTEGER2 INTEGER1 is less than INTEGER2
22. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 22
INTEGER1 -ne INTEGER2 INTEGER1 is not equal to INTEGER2
STRING1 = STRING2 the strings are equal
STRING1 != STRING2 the strings are not equal
-n STRING the length of STRING is nonzero
-z STRING the length of STRING is zero
STRING1 = STRING2 the strings are equal
STRING1 != STRING2 the strings are not equal
Example:
23. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 23
Environment Variable
27. PATH: - Display list directories.
Syntax: - $ echo $PATH… [ENTER]
28. HOME: - Users home directory to store files.
Syntax: - $ echo $HOME… [ENTER]
29. PS1: - Display shell prompt in the bourne shell and variant.
Syntax:- $ echo $PS … [ENTER]
30. TEMP: - Path to where process can store files.
Syntax: - $ echo $TEMP… [ENTER]
31. JAVA_HOME: - JDK path.
Syntax: - $ echo $JAVA_HOME… [ENTER]
32. ORACLE_HOME: - Oracle data base installation path.
Syntax: - $ echo $ORACLE_HOME… [ENTER]
33. TZ: - Setting time zone.
Syntax: - $ echo $TZ… [ENTER]
34. USER: - Current logged in user name.
Syntax: - $echo $USER… [ENTER]
24. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 24
35. SHELL: - The current shell.
Syntax: - $ echo $SHELL… [ENTER]
36. OSTYPE: - Type of operating system.
Syntax: - $ echo $OSTYPE… [ENTER]
37. PWD: - Path to present working directory.
Syntax: - $ echo $PWD… [ENTER]
38. HISTFILE: - The name of file in which command history is saved.
Syntax: - $ echo $HISTFILE… [ENTER]
39. export: - To change the environment variable value.
Syntax: - $ export PS1 = VALUE … [ENTER]
Example:
25. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 25
40. Command Line Arguments: - The command-line arguments $1, $2, $3, ...$9
are positional parameters, with $0 pointing to the actual command, program, shell
script, or function and $1, $2, $3, ...$9 as the arguments to the command.
Example:
26. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 26
Output:
Filter Commands:-
41. Grep: - Print lines matching a pattern.
Syntax:- $ grep [OPTIONS] PATTERN [FILE...]… [ENTER]
Options:
Options Description
--color Display matches in color.
-i Matches either upper or lowercase.
-n Prints the matched line and its line number.
-v Prints all lines that do not match pattern.
-l Prints only the names of files with matching lines.
-L Prints the name of files without match.
-c Prints only the count of matching lines.
-o Display only matched portion not whole matched line.
-b Print the 0-based byte offset within the input file before each line of output.
-f Obtain patterns from FILE, one per line.
Example:
28. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 28
42. Sed: - Stream editor for filtering and transforming the text.
Syntax: - sed [OPTION]... {Script} [Input-file]... [ENTER]
Option:
Options Description
P Prints the line.
D Deletes the line.
s/pattern1/pattern2/ Substitutes the first occurrence of pattern1 with pattern2
$ Matches the end of lines
-e add the script to the commands to be executed
-n suppress automatic printing of pattern space
G Give one line space between each line.
G;G Two new lines between each line.
29. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 29
'2,5!d' This deletes everything except starting from 2nd till 5th line
'4,10p' Lines starting from 4th till 10th are printed
Example:
31. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 31
43. head: - output the first part of files.
Syntax: - head [OPTION]... [FILE]... [ENTER]
Option:
Options Description
-n, --lines=[-]NUM Print the first NUM lines.
-c, --bytes=[-]NUM Print the first NUM bytes of each file.
Example:
32. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 32
44. tail: - output the last part of files.
Syntax: - tail [OPTION]... [FILE]... [ENTER]
Option:
Option Description
-n, --lines=[-]NUM Print the last NUM lines of each file.
-c, --bytes=[-]NUM Print the first NUM bytes of each file.
Example:
33. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 33
45. Pipe: - connect two commands together so that the output from one program
becomes the input of the next program. To make a pipe put a vertical bar ( | ) on the
command line between two commands.
Syntax: - $ command | command … [ENTER]
Example:
46. tee:- Read from standard input and writes to standard output or files.
Syntax: - $ tee [OPTION]… [FILE]… [ENTER]
Option:
Option Description
-a Append to the given files, do not overwrite.
-i Ignore interrupt Signals.
34. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 34
Example:
47. Command Substitutions: - Used to assign the output of a command to a variable.
Syntax: $ varName=`command`… [ENTER]
Example:
35. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 35
48. Command History: - To display a list of previously entered commands.
Syntax: - $ history… [ENTER]
To finding the location of history file in your system.
$ echo $HISTFILE
To show the default history size.
$ echo $HISTSIZE… [ENTER]
To display only the most recent command.
$ history [n]… [ENTER]
Example:
49. Clobbering:-
Will prevent > from clobbering by making it issue an error message instead.
Syntax: - $ set –o noclobber… [ENTER]
Use >| operator to force the file to be overwritten
$ command >| FILENAME… [ENTER]
To turnoff noclobber
$ set +o noclobber… [ENTER]
36. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 36
Example:
50. noglob:- It disables wild card characters *,?,[,],~ in user shell.
Syntax: -
To stop wild card characters permanently:
$ set -o noglob… [ENTER]
To unset the noglob:
$ set +o noglob… [ENTER]
51. pushd and popd: -
Syntax: -
For pushd:
$ pushd [DIRECTORY PATH]… [ENTER]
For popd:
$ popd… [ENTER]
37. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 37
Example:
52. Process Priority:-
Checking the priority of running process.
$ top.. [ENTER]
Or
$ ps –eo [FIELDS/COLUMNS]
FIELDS/COLUMNS:
PID Process Id.
USER User Name.
PR Priority
NI Nice value.
VIRT Virtual memory Size.
RES Resident Memory size(KiB)
SHR Shared memory size.
S Process status.
%CPU CPU usage.
%MEM Memory usage.
TIME+ CPU Time. Hundredths
38. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 38
Command Command name or command line.
Example:
To set the priority on new process:
$ nice –n [NICE VALUE][COMMAND]… [ENTER]
To setting priority on existing process:
$ renice [nice value] –p [process id]… [ENTER]
39. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 39
SHELL SCRIPTING
1. Write a shell script for addition, subtraction, multiplication, division, modulo
division?
Program:
Output:
40. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 40
2. Write a Linux shell script to check the given year is leap year?
Program:
Output:
41. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 41
3. Write a Linux shell script to check given number is prime or not?
Program:
Output:
42. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 42
4. Write a Linux shell script for Fibonacci series?
Program:
Output:
43. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 43
5. Write a Linux shell script to calculate factorial of given number?
Program:
Output:
44. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 44
6. Write a Linux shell script for Armstrong number?
Program:
Output:
45. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 45
7. Write a Linux shell script to check largest no of three numbers?
Program:
Output:
46. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 46
8. Write a shell script to see date, time, username, current directory?
Program:
Output:
47. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 47
9. Write a Linux shell script to swapping variable?
Program:
Output:
48. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 48
10. Write a Linux shell script to check given no odd or even?
Program:
Output:
49. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 49
11. Write shell script to find multiplication table using for loop?
Program:
Output:
50. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 50
12. Write a Linux shell script to print employee payroll (basic, DA, HRA, PF, Gross
salary, Net Salary)?
Program:
Output:
51. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 51
13. Write a Linux shell script to perform all arithmetic operation using command
line argument?
Program:
Output:
52. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 52
14. Write a shell script to accept character and check for following?
If user enter character (A-Z) then show upper case letter.
If user enter character (a-z) then show lower case letter.
If user enters digital no (0-9) then show digital number.
*, $, #, @ show its special character.
Program:
Output:
53. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 53
15. Write a Linux shell script show various system configurations?
Currently log user and His/her login name.
Your current shell.
Your current directory.
Your operating system type.
Show mouse setting.
Show keyboard
Show network setting.
Show Path
currently logged number of users
Program:
55. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 55
16. Write a shell script to check given name is a file or a directory or special file or
not?
Program:
Output:
56. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 56
17. Write a shell script to determine whether given file exist or not, existing file
name supplied by command line argument also check for sufficient no of
command line argument?
Program:
Output:
57. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 57
18. Write shell script to copy the content is one file to another file?
Program:
Output:
58. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 58
19. Write a shell script to print addition of given of all digits?
Program:
Output:
59. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 59
20. Write a shell script to search element present in list or not. (Binary & Linear
Search).
Program: Binary Search
65. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 65
22. Write a Linux shell script to sort the given no in ascending or descending orders?
Program:
67. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 67
23. Write a Linux shell script to implement read, write and execute permission?
Program:
Output:
68. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 68
24. Write a Linux shell script to print the following pattern?
1
2 2
3 3 3
4 4 4 4
5 5 5 5 5
Program:
Output:
69. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 69
25. Write a Linux script to print the following pattern using for loop?
*
* *
* * *
* * * *
* * * * *
* * * *
* * *
* *
*
Program:
Output:
70. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 70
26. Write a Linux shell script to implement break & continue statement?
Program:
Output:
71. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 71
27. Write a Linux shell script to calculate area of circle & rectangle?
Program:
Output:
72. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 72
28. Write a Linux shell script to count no of file in directory?
Program:
Output:
73. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 73
29. Write a shell script to generate all combination of 1, 2 and 3.
Program:
Output:
74. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 74
30. Write a shell script to check given string or number is palindrome or not?
Program: Number
Output:
76. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 76
31. Write a Linux shell script to implement create () system calls?
Program:
Output:
77. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 77
32. Write a Linux shell script to implement Open () system calls?
Program:
Output:
78. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 78
33. Write a Linux shell script to implement Open (), read (), write () system calls?
Program:
Output:
79. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 79
34. Write a shell script which receives two file names as argument. It checks
whether two file contents are same or not. If they are same then second file is
deleted.
Program:
Output:
80. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 80
35. Write a shell script for decimal to binary conversion?
Program:
Output:
81. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 81
36. Execute any 5 file handling commands with required options on the terminal.
1) Displaying the file: - Displays the file on standard output.
Syntax: - $ cat filename… [ENTER]
Example:
Concatenates the first two files and places the result on the third, overwriting the current
contents of file3.
Syntax: - $ cat file1 file2 > file3.. [ENTER]
Example:
2) Copying File: - copy files and directories
Syntax: - $ cp [OPTION]... SOURCE... DIRECTORY… [ENTER]
82. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 82
Example:
3) Moving a File: - Move file command (which essentially renames a file) is mv .
Syntax: - $ mv [OPTION]... SOURCE... DIRECTORY… [ENTER]
Example:
4) Deleting a File: - Remove files.
Syntax: - $ rm [OPTION]... [FILE]... [ENTER]
83. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 83
Example:
5) Searching: - searches the files for a pattern specified by a limited regular
expression.
Syntax: - $ grep [OPTIONS] PATTERN [FILE...]… [ENTER]
Example:
84. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 84
37. Create an awk program to calculate to check even or odd number.
Program:
Output:
85. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 85
38. Create an awk program to calculate gross salary from employee database file.
Program:
Output:
86. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 86
39. Create an awk program to provide an increment of 10%on the salary on the employee
database file containing 'salary' field.
Program:
Output:
87. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 87
40. Create sed script file to make following replacement on student database file:
Name- John as Joney
Rollno- 101 as 110
Percentage- 97 as 78
Address- Raipur as Durg
Program:
Output:
88. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 88
41. Create a sed script file to perform following operation on student database:
Insertion.
Append
Deletion
Program:
90. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 90
42. Write a linux shell script to implement system call that will check for disk
appearance of child and exit return its p_id , modify its various used and keep
child process.
Program:
92. Unix/Linux MCA-IV
N i k i t a K e s h a r w a n i Page 92
43. Write a linux shell script to implement system call signal () pass one argument
that will contain signal () and if it is valid then display signal flag otherwise error
will be generated.
Program:
Output: