CSE 314: Operating Systems Sessional: Shell Tips & Tricks
CSE 314: Operating Systems Sessional: Shell Tips & Tricks
Sessional
Shell tips & tricks
Clear the screen
● In unix like operating systems, the OS does not determine file type from
file extension
● We can check a file type with the ‘ file’ command
Be careful with rm
To put a previous command in action you can get the number from history
and call it with a preceding !
Create a new text file
truncate a file (or create a new, empty file) we can use a trick like this:
> ls-output.txt
Brace expansion