Skip to content

Hem125/bashshellcommand

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 

Repository files navigation

bashshellcommand

Create, copy, move, delete, and organize files from the bash shell

  • create a folder

image

  • create two file inside folder 1 name file1 and file2

image

  • create another folder for moving or copying files

image

  • copy file 1 from folder1 to folder2 using cp command

image

  • now we have to move file2 from folder1 to folder2

image

  • we can move using mv command

image

  • remove file1 from folder2 using rm command

image

  • remove folder1 from list using rmdir command

image

Create, view, and edit text files from command output or in an editor

  • create file using cat command and touch command, redirecrt command,nano command

image

  • edit file using nano command

image

  • edit using vi command

image

  • view content of file using cat command

image

Manage local Linux users and groups

  • list out all user in linux

image

  • id command to get id of username

image

  • useradd command to create a user

image

  • Using passwd command to assign a password to a user

image

  • This commands prints the data of the configuration file. This file contains information about the user in the format.

username : x : user id : user group id : : /home/username : /bin/bash image

  • command to change the user id of user

image

  • delete a user name

image

Set Linux file system permissions on files

  • we can see the permission of file using long list command

image

  • give all permission to group user and other in file3.txt

image

  • removing all permission from group user and other in file4.txt

image

  • giving all permission to user, read write permission to group and read permission to other in file4.txt

image

Obtain information about the system

  • display information of active process by ps command

image

  • offer dynamic view of running system using top command acts as a system monitoring tool

image

control processes running on it.

  • killing process using kill command

image

  • sending signal to process using kill -l

image

  • use pkill or killall to kill an application

image

Configure and secure OpenSSH service

  • using scp command to copy a file from one operating system to another

image

  • file transferred using ip address of another operating system

image

Installation of Apache2

  • We can install using following command

image

  • update apache2 using following command

image

  • we can test it out by typing in our IP address for the web server.

image

Installation of nginx

  • we can install using following command

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published