pr1 535
pr1 535
PRACTICAL 1:
Who Command:
Who Am I Command:
Touch Command:
List Command:
(base) nirma@nirma-28:~$ ls
056 lpw.sh
1 'MicrosoftEdgeSetup(1).exe'
1.cpp MicrosoftEdgeSetup.exe
22bce094 myfile.txt
23bce048 os_ft4
anaconda3 OSLAB
Anaconda3-2024.10-1-Linux-x86_64.sh pract10
bash.sh pract10.c
CSE 'pract7(a).c'
d2.csv 'pract7(b).c'
Desktop 'Screenshot from 2024-12-20 14-27-58.png'
Downloads snap
EXAM Untitled1.ipynb
file1.txt 'Untitled Document 1'
javascript Untitled.ipynb
LPW
(base) nirma@nirma-28:~/yashvi$ ls f*
file2.txt file3.txt file4.txt file5.txt file.txt
(base) nirma@nirma-28:~/yashvi$ ls ?ile*
file2.txt file3.txt file4.txt file5.txt file.txt
(base) nirma@nirma-28:~/yashvi$ ls
Command_list file2.txt file3.txt file4.txt file5.txt file.txt
(base) nirma@nirma-28:~/yashvi$ ls ?ile*
file2.txt file3.txt file4.txt file5.txt file.txt
(base) nirma@nirma-28:~/yashvi$ ls ?ile?. txt
file2.txt file3.txt file4.txt file5.txt
(base) nirma@nirma-28:~/yashvi$ cd ..
(base) nirma@nirma-28:~$ ls / yashvi/f*
yashvi/file2.txt yashvi/file3.txt yashvi/file4.txt yashvi/file5.txt yashvi/file.txt
(base) nirma@nirma-28:~$ ls [aeiou]*
bin condabin etc LICENSE.txt mysql plugins share var
cmake conda-meta include licensing mysql-test qml shell x86_64-conda_cos7-
linux-gnu
compiler_compat doc lib man phrasebooks resources ssl x86_64-conda-linux-
gnu
(base) nirma@nirma-28:~$ ls -l
total 1080168
drwxrwxr-x 2 nirma nirma 4096 Nov 25 12:29 056
-rwxrwxr-x 1 nirma nirma 38896 Nov 13 11:56 1
-rw-rw-r-- 1 nirma nirma 640 Nov 13 11:56 1.cpp
drwxrwxr-x 2 nirma nirma 4096 Nov 21 09:57 22bce094
drwxrwxr-x 2 nirma nirma 4096 Nov 20 14:03 23bce048
drwxrwxr-x 31 nirma nirma 4096 Nov 16 14:59 anaconda3
-rwxrwxr-x 1 nirma nirma 1102495056 Nov 16 14:56 Anaconda3-2024.10-
1-Linux-x86_64.sh
-rw-rw-r-- 1 nirma nirma 1254 Nov 19 09:27 bash.sh
drwxrwxr-x 3 nirma nirma 4096 Dec 24 14:48 CSE
-rw-rw-r-- 1 nirma nirma 9498 Nov 25 08:49 d2.csv
drwxr-xr-x 3 nirma nirma 4096 Nov 18 12:23 Desktop
drwx------ 2 nirma nirma 4096 Dec 20 15:25 Downloads
drwxrwxr-x 3 nirma nirma 4096 Nov 13 11:35 EXAM
-rw-rw-r-- 1 nirma nirma 0 Dec 26 11:24 file1.txt
-rw-rw-r-- 1 nirma nirma 34757 Nov 20 13:39 javascript
drwxrwxr-x 2 nirma nirma 4096 Nov 25 13:56 LPW
-rwxrwxr-x 1 nirma nirma 636 Nov 19 09:49 lpw.sh
-rw-rw-r-- 1 nirma nirma 1639384 Nov 6 08:52
'MicrosoftEdgeSetup(1).exe'
-rw-rw-r-- 1 nirma nirma 1639384 Nov 6 08:52 MicrosoftEdgeSetup.exe
-rw-rw-r-- 1 nirma nirma 19 Nov 19 09:38 myfile.txt
drwxrwxr-x 2 nirma nirma 4096 Dec 26 11:11 os_ft4
drwxrwxr-x 2 nirma nirma 4096 Dec 24 09:40 OSLAB
-rwxrwxr-x 1 nirma nirma 16928 Oct 23 14:55 pract10
-rw-rw-r-- 1 nirma nirma 1617 Oct 23 14:59 pract10.c
-rw-rw-r-- 1 nirma nirma 1649 Oct 23 15:12 'pract7(a).c'
-rw-rw-r-- 1 nirma nirma 830 Nov 13 11:35 'pract7(b).c'
-rw-rw-r-- 1 nirma nirma 27631 Dec 20 14:27 'Screenshot from 2024-12-
20 14-27-58.png'
drwx------ 4 nirma nirma 4096 Nov 12 10:24 snap
-rw-rw-r-- 1 nirma nirma 24249 Nov 25 10:35 Untitled1.ipynb
-rw-rw-r-- 1 nirma nirma 185 Nov 19 09:27 'Untitled Document 1'
-rw-rw-r-- 1 nirma nirma 57973 Nov 25 09:56 Untitled.ipynb
Concatenate command:
Display contents of File
Copy Command:
(base) nirma@nirma-28:~$ touch file4.txt
(base) nirma@nirma-28:~$ cp file1.txt file4.txt
(base) nirma@nirma-28:~$ cat file4.txt
hi
welcome to nirma
hi
welcome to nirma
Hidden File:
Umask :
Pwd command:
Basic Calculator:
(base) nirma@nirma-28:~/yashvi$ bc
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation,
Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
10 / 3
3
10 +1
11
s(3.14)
ERROR: Function not found
(base) nirma@nirma-28:~/yashvi$ bc -l
bc 1.07.1
Copyright 1991-1994, 1997, 1998, 2000, 2004, 2006, 2008, 2012-2017 Free Software Foundation,
Inc.
This is free software with ABSOLUTELY NO WARRANTY.
For details type `warranty'.
10 / 3
3.33333333333333333333
10 + 1
11
c(90)
-.44807361612917015236
s(90
(standard_in) 5: syntax error
s(90)
.89399666360055789051
scale = 2
c(90)
-.44
s(90)
.88
sqrt(4)
2.00000000000000000000
for(i=0;i<6;i++)i
0
1
2
3
4
5
quit
Calendar Command:
Date Command:
Factor Command:
Word Count:
Sort Command:
Tty Command:
Cut Command:
Grep Command:
du
du -sh folder/
ulimit
ulimit -n