0% found this document useful (0 votes)
23 views

Assignment 1A

JKIIUH

Uploaded by

rohitkamble3018
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

Assignment 1A

JKIIUH

Uploaded by

rohitkamble3018
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 10

Operating Systems Laboratory

Assignment No. 1-A


Name: Rudra Kadam Division: TE-11 Batch: L-11 Roll No.: 33330
Title: Basic Linux Commands
Aim: Study of Basic Linux Commands: echo, ls, read, cat, touch, test, loops, arithmetic
comparison, conditional loops, grep, sed etc.

1. pwd
Print the full filename of the current working directory.

2. cd
Change the current working directory to ‘dirName’, or to the home directory (as specified in
the HOME environment variable) if ‘dirName’ is not given.
3. ls
List information about the ‘FILE’s (the current directory by default).

4. cat
Concatenate ‘FILE’(s) to standard output. With no ‘FILE’, or when ‘FILE’ is -, read standard
input.
5. cp
Copy ‘SOURCE’ to ‘DEST’, or multiple ‘SOURCE’(s) to ‘DIRECTORY’.

06. mv
Rename ‘SOURCE’ to ‘DEST’ or move ‘SOURCE’(s) to ‘DIRECTORY’.
07. mkdir
Create the ‘DIRECTORY’(ies) if they do not already exist.

08. rmdir
Remove the DIRECTORY(ies) if they are empty.
09. rm
rm removes each specified file. By default, it does not remove directories.

10. touch
Update the access and modification times of each ‘FILE’ to the current time. A ‘FILE’ argument
that does not exist is created empty, unless -c or -h is supplied.

11. locate
plocate finds all files on the system matching the given pattern.
12. find
find - search for files in a directory hierarchy.

13. grep
grep searches for ‘PATTERNS’ in each ‘FILE’. ‘PATTERNS’ are one or more patterns separated
by newline characters, and grep prints each line that matches a pattern.

14. sudo
‘sudo’ allows a permitted user to execute a command as the superuser or another user, as
specified by the security policy.
15. df
df displays the amount of disk space available on the file system containing each file name
argument. If no file name is given, the space available on all currently mounted file systems
is shown.

16. du
Summarize disk usage of the set of ‘FILE’s, recursively for directories.
17. head
Print the first 10 lines of each ‘FILE’ to standard output.

18. tail
Print the last 10 lines of each ‘FILE’ to standard output.

19. diff
Compare ‘FILES’ line by line.
20. tar
GNU tar is an archiving program designed to store multiple files in a single file (an archive),
and to manipulate such archives.

21. chmod
chmod command is used to change the access mode of a file. chmod changes the file mode
bits of each given file according to mode, which can be either a symbolic representation of
changes to make, or an octal number representing the bit pattern for the new mode bits.

22. chown
chown changes the user and/or group ownership of each given file.

23. kill
kill command sends a signal to a process that terminates the process.
24. man
‘man‘ is the system's manual pager.

Conclusion:
We learnt about and implemented basic Linux commands.

You might also like