$ uname -a
Linux arjun-SVF15218SNB 3.13.0-32-generic #57-Ubuntu SMP
Tue Jul 15 03:51:08 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ ls
Android-Games Music
Pictures Public
Desktop Tecmint.com
Documents TecMint-Sync
Downloads Templates
$ ls -l
total 162
-rwxrwxrwx 1 root root 523 Feb 24 10:52 bower.json
-rwxrwxrwx 1 root root 1062 Feb 24 10:52 CONTRIBUTING.md
drwxrwxrwx 1 root root 0 Feb 24 10:52 css
-rwxrwxrwx 1 root root 3338 Feb 24 10:52 Gruntfile.js
-rwxrwxrwx 1 root root 9413 Feb 25 11:32 index.html
drwxrwxrwx 1 root root 0 Feb 24 19:32 js
drwxrwxrwx 1 root root 0 Feb 24 10:52 lib
-rwxrwxrwx 1 root root 1075 Feb 24 10:52 LICENSE
-rwxrwxrwx 1 root root 21146 Feb 24 23:08 linusTorvalds.jpg
drwxrwxrwx 1 root root 4096 Feb 24 11:02 node_modules
-rwxrwxrwx 1 root root 1111 Feb 24 10:52 package.json
drwxrwxrwx 1 root root 4096 Feb 24 10:52 plugin
-rwxrwxrwx 1 root root 41365 Feb 24 10:52 README.md
-rwxrwxrwx 1 root root 364 Feb 24 19:08 session contents
drwxrwxrwx 1 root root 0 Feb 24 19:33 temp
drwxrwxrwx 1 root root 4096 Feb 24 10:52 test
-rwxrwxrwx 1 root root 50809 Feb 24 22:38 TuxWallpaper.jpg
$ ls -l -a
drwxrwxrwx 1 root root 4096 Feb 24 23:08 .
drwxrwxrwx 1 root root 0 Feb 24 18:45 ..
-rwxrwxrwx 1 root root 523 Feb 24 10:52 bower.json
-rwxrwxrwx 1 root root 1062 Feb 24 10:52 CONTRIBUTING.md
drwxrwxrwx 1 root root 0 Feb 24 10:52 css
drwxrwxrwx 1 root root 4096 Feb 25 11:02 .git
-rwxrwxrwx 1 root root 123 Feb 24 10:52 .gitignore
-rwxrwxrwx 1 root root 3338 Feb 24 10:52 Gruntfile.js
-rwxrwxrwx 1 root root 10965 Feb 25 11:35 index.html
drwxrwxrwx 1 root root 0 Feb 24 19:32 js
drwxrwxrwx 1 root root 0 Feb 24 10:52 lib
-rwxrwxrwx 1 root root 1075 Feb 24 10:52 LICENSE
-rwxrwxrwx 1 root root 21146 Feb 24 23:08 linusTorvalds.jpg
drwxrwxrwx 1 root root 4096 Feb 24 11:02 node_modules
-rwxrwxrwx 1 root root 1111 Feb 24 10:52 package.json
drwxrwxrwx 1 root root 4096 Feb 24 10:52 plugin
-rwxrwxrwx 1 root root 41365 Feb 24 10:52 README.md
-rwxrwxrwx 1 root root 364 Feb 24 19:08 session contents
drwxrwxrwx 1 root root 0 Feb 24 19:33 temp
drwxrwxrwx 1 root root 4096 Feb 24 10:52 test
-rwxrwxrwx 1 root root 80 Feb 24 10:52 .travis.yml
-rwxrwxrwx 1 root root 50809 Feb 24 22:38 TuxWallpaper.jpg
$ pwd
/media/arjun/nv1/linux_workshop/reveal/css
$ pwd
/media/arjun/nv1/linux_workshop/reveal
$ cd css
$ pwd
/media/arjun/nv1/linux_workshop/reveal/css
$ pwd
/media/arjun/nv1/linux_workshop/reveal/css
$ cd ..
$ pwd
/media/arjun/nv1/linux_workshop/reveal
$ pwd
/media/arjun/nv1/linux_workshop/reveal/css
$ cd ~
$ pwd
/home/arjun/
$ pwd
/home/arjun/
$ cd /media/arjun/nv1/linux_workshop/reveal
$ pwd
/media/arjun/nv1/linux_workshop/reveal
$ history
2001 ls -l
2002 ls -a
2003 ls -a -l
2004 ls -l -a
2005 ls -a
2006 ls -a -l
2007 pwd
2008 ls
2009 cd css
2010 ls
2011 pwd
2012 cd .
2013 cd ~
2014 pwd
2015 cd /media/arjun/nv1/linux_workshop/
2016 ls
2017 cd /media/arjun/nv1/linux_workshop
2018 ls
2019 cd /media/arjun/nv1/linux_workshop/reveal
2020 ls
2021 pwd
2022 man history
2023 history
$ cat text.txt
Hi I am A text file
$ more largetext.txt
Linux is, in simplest terms, an operating system. It is the software on a
computer that enables applications and the computer operator to acces
s the devices on the computer to perform desired functions.
The operating system (OS) relays instructions from an application to, for instance,
the computer's processor. The processor performs the instructed task, then sends
the results back to the application via the operating system.
--More--(82%)
$ less text.txt
$ ls -l
total 5
-rwxrwxrwx 1 root root 3163 Feb 25 12:52 largetext.txt
drwxrwxrwx 1 root root 0 Feb 25 12:51 temp
-rwxrwxrwx 1 root root 20 Feb 25 12:52 text.txt
$ mkdir mydirectory
$ls -l
total 5
-rwxrwxrwx 1 root root 3163 Feb 25 12:52 largetext.txt
drwxrwxrwx 1 root root 0 Feb 25 12:53 mydirectory
drwxrwxrwx 1 root root 0 Feb 25 12:51 temp
-rwxrwxrwx 1 root root 20 Feb 25 12:52 text.txt
$ cp text.txt mydirectory/mytext.txt
$ mv text.txt mydirectory/movedtext.txt
mv <initial_name> <final_name>
rename the target from initname to finalname
$ mv text.txt myrenamedtext.txt
$ man man
$ ls -l
total 5
-rwxrwxrwx 1 root root 3163 Feb 25 12:52 largetext.txt
drwxrwxrwx 1 root root 0 Feb 25 12:51 temp
-rwxrwxrwx 1 root root 20 Feb 25 12:52 text.txt
Symbol | Meaning |
---|---|
- | Regular file |
d | directory |
l | link |
c | Special File |
s | Socket |
p | Named Pipe |
b | Block device |
$ ps -ef
root 26551 5 0 Feb10 ? 00:03:41 [pdflush]
root 26570 5 0 Feb10 ? 00:00:20 [pdflush]
root 30344 3382 0 Feb21 ? 00:00:11 sshd: root@pts/14
root 30365 30344 0 Feb21 pts/14 00:00:02 -bash
root 30393 3382 0 Feb21 ? 00:00:10 sshd: root@pts/15
$ top
echo "Hello World"
>or
>>
echo "Hello World" > hello_world.txt
less hello_world.txt
echo "Linux is fun" >> hello_world.txt
less hello_world.txt
cat
<or
<<
cat hello_world.txt
ls | less
ls *.html
rm *projectX*
ls ???
ls [xy]*
ls [a-g]*
ls [a-gxy]*
ls *[0-9][0-9][0-9]*
View permissions - ls -l
chmod a-wx file
chmod g+rx file
chmod u+rwx file
chmod 640
chown owner:group file
chown skidm09:wireshark index.html
sudo apt-get install apache2
sudo apt-get remove apache2
sudo apt-get update
sudo apt-get upgrade
apt-get help