0% found this document useful (0 votes)
2 views5 pages

Linux Directory and Shell Commands Guide

The document outlines a series of Linux commands for creating and managing directories and files, including creating directories, renaming, and deleting files. It also demonstrates how to change the login shell and run commands with administrative privileges using 'sudo'. Additionally, it includes examples of navigating the file system and creating text files within specific directories.

Uploaded by

izumise93
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views5 pages

Linux Directory and Shell Commands Guide

The document outlines a series of Linux commands for creating and managing directories and files, including creating directories, renaming, and deleting files. It also demonstrates how to change the login shell and run commands with administrative privileges using 'sudo'. Additionally, it includes examples of navigating the file system and creating text files within specific directories.

Uploaded by

izumise93
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

Program# 8

$ mkdir program8
$ cd program8
$ mkdir create
$ mkdir rename
$ mkdir delete
$ mkdir linux
$ touch [Link]
$ touch [Link]
$ ls
create delete [Link] [Link] linux rename
$ rm [Link]
$ ls
create delete [Link] linux rename
$ mv linux bscsem5
$ ls
bscsem5 create delete [Link] rename
Program no 9
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
poojashukla@HP1:~$ cat /etc/shells
# /etc/shells: valid login shells
/bin/sh
/usr/bin/sh
/bin/bash
/usr/bin/bash
/bin/rbash
/usr/bin/rbash
/usr/bin/dash
/usr/bin/tmux
poojashukla@HP1:~$ chsh
Password:
Changing the login shell for poojashukla
Enter the new value, or press ENTER for the default
Login Shell [/bin/bash]: /bin/sh
poojashukla@HP1:~$ exit
Program #7

$ pwd
/home/poojashukla
$ mkdir firstdirec
$ cd firstdirec
$ mkdir foss
$ mkdir advjava
$ cd foss
$ cat>[Link]
$ cat>[Link]
$ pwd
/home/poojashukla/firstdirec/foss
$ cd..
-sh: 65: cd..: not found
$ cd ..
$ cd advjava
$ mkdir complexities
$ cd complexities
$ cat>[Link]
$
$ cat>[Link]
$ ls
[Link] [Link]
$ cd \

You might also like